10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have two pipe separated files as below:
head -3 file1.txt
"HD"|"Nov 11 2016 4:08AM"|"0000000018"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
head -3 file2.txt
"HD"|"Nov 15 2016 2:18AM"|"0000000019"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
I want to list the... (6 Replies)
Discussion started by: Prasannag87
6 Replies
2. UNIX for Dummies Questions & Answers
Is there anyway to display the file content in a subdirectory that starts or ends with a certain filename, say .txt? or start with NTS
$ ls *
dos2unix.bat dos2unix.exe test.txt
FilePermissions:
filepermission.html NTSLA32_SystemDrive.txt NTSLA36_regedit.txt
filepermission.sh ... (1 Reply)
Discussion started by: alvinoo
1 Replies
3. Shell Programming and Scripting
I have a huge list of files (about 300,000) which have a pattern like this.
.I 1
.U
87049087
.S
Am J Emerg
.M
Allied Health Personnel/*; Electric Countershock/*;
.T
Refibrillation managed by EMT-Ds:
.P
ARTICLE.
.W
Some patients converted from ventricular fibrillation to organized... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
4. Shell Programming and Scripting
Hi
I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory.
That's what I have at the moment.
function listDirectory
{
echo "Give in a directory name"
read name
#Here I want to check if the... (4 Replies)
Discussion started by: hss
4 Replies
5. Shell Programming and Scripting
I have a combo.cgi here. this is linux environment
What i am going to do is this combobox will list down all the flatfile name in this /u/test/cgi-bin/List directory.
after that, i wanted it to open the flatfile and display the content of the flatfile into another listbox or textarea in this page... (0 Replies)
Discussion started by: chezy
0 Replies
6. Shell Programming and Scripting
I need help. I have this file, it has 2 fields with at least 300 lines:
1 4
2 3
3 6
4 2
.
.
300 5
My output should be for every line in input file the output should be like this, for example line 1:
wget http://somewebsite/page=1&line=1
wget http://somewebsite/page=1&line=2
wget... (4 Replies)
Discussion started by: zorrox
4 Replies
7. Shell Programming and Scripting
Okay, so I am not quite sure the best way of going about this.
I have a whole stack of files that need items replaced with a code corresponding to it. In particular, I am looking to replace the names of countries with the two letter iso country code. The files themselves are in csv format with... (4 Replies)
Discussion started by: johnlee
4 Replies
8. UNIX for Dummies Questions & Answers
I want to search the string including the symbol like
'search'
for example, file a.txt in \\dir contains,
a for 'appable'
b for 'banana'
c for 'cat'
s for 'search'
Here I need to display(serach outpur) like
\\dir\a.txt s for 'search'
...
...
How to list content with file name... (5 Replies)
Discussion started by: gkskumar
5 Replies
9. Shell Programming and Scripting
Dear Friends ,
$tar tf testing.tgz
a
b
c
d
e
$tar tf testing.tgz a
a
$tar tf testing.tgz a a
a
tar: a: Not found in archive
tar: Error exit delayed from previous errors
I don't know the reason, why last command got failed .How to solve above problem . (1 Reply)
Discussion started by: dharanivasan
1 Replies
10. Shell Programming and Scripting
Hello,
I've created a couple of files within a list using the command "ls -ltr | tail -2 > list" These files are the newest files placed within a directory. From the "list" file, I need to place the filenames as a variable. In which the newest file will be called "new_ctrl" the older file... (4 Replies)
Discussion started by: petersf
4 Replies