10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all and apologies for the silly question, but I've searched and I can't get this right.
I have a list of email addresses in a file that I need to blacklist (spam). the list is quite long and I would need to script a small routine so that I can get the following for each line in the file:
db... (4 Replies)
Discussion started by: bm555
2. Shell Programming and Scripting
I need to put the following string to the beginning of a file - but it should not create a newline at the end of the string.
So, the file I have is a compressed one - with gzip.
And I would like to add an ASCII-String to the beginning of the file. The string has a length of 69... (5 Replies)
Discussion started by: API
3. Shell Programming and Scripting
I need add one new line in the begining of current file.
xyz (6 Replies)
Discussion started by: ken6503
4. Shell Programming and Scripting
I am doing something like below:
I wanted to check if there is a way to write a custom message(hardcoded message)something like below at the beginning of each line then PIPE delimitiation and then followed by remaining record.
cat file1... (7 Replies)
Discussion started by: Saanvi1
5. Shell Programming and Scripting
I want to append file names at the beginning of a line for each row
I want a single output file with below format
This one is working but only with unzip files,need to have... (3 Replies)
Discussion started by: rakesh5300
6. UNIX for Dummies Questions & Answers
about 200 files with names as
are there in my library...I need to rename all of them by addinf File in front of them as:
I checked many threads but it seems i get even more confused..i... (1 Reply)
Discussion started by: kanikasharma
7. Shell Programming and Scripting
I have a report file which somewhere has a lines starting with word ".sub"
I have a new variable named $new.
What i am trying to do is insert the content of $new just before the occurrence of ".sub" in the report file.
How can I do that? (11 Replies)
Discussion started by: animesharma
8. UNIX for Dummies Questions & Answers
I was trying to find out the easiest way to write new line to the beginning of an exisiting file.
I am using KSH. (5 Replies)
Discussion started by: sailussr
9. Shell Programming and Scripting
if need to input a word or anything at the beginning of every file in a directory. how do i accomplish this?
say the file is named hyperten. how do i make hyperten the first line of every file in a given directory?
thanks (6 Replies)
Discussion started by: Terrible
10. Shell Programming and Scripting
How can i add a character(#) in the beginning of every line in a .dat file (2 Replies)
Discussion started by: Cool Coder