10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi gurus,
I need add one new line in the begining of current file.
current file
abc
cde
add
xyz
output file
newline
abc
cde
add
xyz (6 Replies)
Discussion started by: ken6503
6 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys,
I have serveral directories like this:
(2013) blablabla(blabla) - blabla (blabla)
or
(1997) blablabla(blabla) - blabla (blabla)
and have to rename them to something like that:
blablabla(blabla) - blabla (blabla) (2013)
and
blablabla(blabla) - blabla (blabla) (1997)
Easy... (2 Replies)
Discussion started by: Nateshift
2 Replies
3. Shell Programming and Scripting
I want to append file names at the beginning of a line for each row
file content
abc.txt.gz 123|654|987
bcd.txt.gz 876|trf|kjh
I want a single output file with below format
abc.txt.gz|123|654|987
bcd.txt.gz|876|trf|kjh
This one is working but only with unzip files,need to have... (3 Replies)
Discussion started by: rakesh5300
3 Replies
4. UNIX for Dummies Questions & Answers
about 200 files with names as
11_0.pdb
11_60.pdb
12_12.pdb
14_180.pdb
are there in my library...I need to rename all of them by addinf File in front of them as:
File11_0.pdb
File11_60.pdb
File12_12.pdb
File14_180.pdb
I checked many threads but it seems i get even more confused..i... (1 Reply)
Discussion started by: kanikasharma
1 Replies
5. Linux
How would I do that?
/Rutger (6 Replies)
Discussion started by: rutgerblom
6 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have file a.txt as below. I want to add one string root beginning of each line.
Sample file a.txt
aaa
bbb
ccc
Sample output
Root aaa
Root bbb
Root ccc
Can any one help me on this? (6 Replies)
Discussion started by: siba.s.nayak
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a file x which is being upated continuously.
I want to add file y in the file x but at the beginning of file x.
file x file y After commands file x
eeee aaaa aaaa
gggg bbbb bbbb
hhhh... (2 Replies)
Discussion started by: baanprog
2 Replies
8. Shell Programming and Scripting
Hi,
Fairly new to unix scripting, hoping to get some help.
using AIX v5
Basically I have 3 files 1). Header record 2). many detail record 3). Trailer record
My desired result is 1 file which contains Heaeder, Detail, Trailer
Currenty I am using a series of:
... (8 Replies)
Discussion started by: CBZ
8 Replies
9. Shell Programming and Scripting
Hi
I need to add text to the beginning of a file in the same way that cat will put file contents at the end of a file. I want to do this with many files eg
cat newtext >> /usr/home/*/*.bat
Any ideas? (2 Replies)
Discussion started by: donkey
2 Replies
10. UNIX for Dummies Questions & Answers
Is there an option, for cat, head, tail, or is there any way, to display a file from last line to first? For example, my file
looks like this:
aaaa
bbbb
cccc
eeee
and I would like to print or display it like this:
eeee
cccc
bbbb
aaaa
thanks (5 Replies)
Discussion started by: jpprial
5 Replies