10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I have been searching how to do this but I can't seem to find how to do it. Hopefully someone can help.
I have multiplr files, 100's example 12345-zxys.213423.zyz.txt. I want to be able to take all these files and remove the first '12345-' from each of the files. '12345-' these characters... (5 Replies)
Discussion started by: israr75
5 Replies
2. 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
3. Shell Programming and Scripting
Hi..Can anyone suggest a simple way of achieving this. I have several files which ends with extension .vcf . I will give example with two files
In the below files, we are interested in
File 1:
38 107 C 3 T 6 C/T
38 241 C 4 T 5 C/T
38 247 T 4 C 5 T/C
38 259 T 3 C 6 T/C... (8 Replies)
Discussion started by: empyrean
8 Replies
4. Shell Programming and Scripting
I am writing a code to append some numbers in the beginning of each line in all the files present in a directory. The number of files are really huge. The files are numbered as 1.sco, 2.sco, 4.sco (Note: 3.sco is missing).
The files currently look like this:
1.sco
2 3
5 6
6 7My task is to... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies
5. Shell Programming and Scripting
Hello,
This is what I am trying to achieve:
file1
a
b
c
d
file2
e
f
g
h (8 Replies)
Discussion started by: smarones
8 Replies
6. Shell Programming and Scripting
Hi Folks,
I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers.
I was not able to do that with the help of a script. All I could was:
for i in server1 server2 server3 server4
do
ssh $i
done
I know 'sed' could be used to... (5 Replies)
Discussion started by: momin
5 Replies
7. Shell Programming and Scripting
Dear All-
Please suggest a single unix command which can append blank line in multiple files.
I need to achieve this using a single unix command and not a script
Please do advice
Regards,
Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have 50 text files in a directory called "AllFiles"
I want to make a program that will go inside of the "AllFiles" Directory and count the number of lines in each individual text file. Then, the program will calculate how many more lines there are over 400 in each text file and... (7 Replies)
Discussion started by: motoxeryz125
7 Replies
9. 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
10. 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