10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want ot print a header with new line in the end. I am using echo
like echo "this is header"
I want output like
This is header
I tried -e also but it's not working. echo - e
Can anyone help please? (6 Replies)
Discussion started by: dsa
2. Shell Programming and Scripting
I have following file contents
I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Discussion started by: manishdivs
3. Shell Programming and Scripting
Hi..wanted a help regarding inserting a newline in an xml file using shell script.
i've an xml file which has the following data.
1. <?xml version="1.0" encoding="UTF-8"?>
I need to insert two new lines after line#2, so that the output... (14 Replies)
Discussion started by: arjun_arippa
4. Shell Programming and Scripting
I am new to this forum. I have a question in Unix shell scripting. Here is my requirement
I have 1000 files and I need to insert a header with one line at the top of
each of the 1000 files. Please let me know if you have any solution for this
Thanks in advance.
Raj (4 Replies)
Discussion started by: trajashekar
5. Shell Programming and Scripting
I have a large file and i need to insert a line after every line.I am actually unaware how to do it.Any help appreciated.
control station *ATM* , qread $OSS.Jul13A.FI01 interval 1 intcount 1
control station *ATM* , qread $OSS.Jul13A.FI02 interval 1 intcount... (4 Replies)
Discussion started by: appu2176
6. Shell Programming and Scripting
I am using the below script to enter the URL at the end of file:
echo "Enter the URL that should point to the particular microsite"
sed "$a $url" redirects.virgin-atlantic.com.conf > temp
But am getting the below error:
./script.sh:... (7 Replies)
Discussion started by: Shazin
7. Shell Programming and Scripting
I have posted it previously but somehow could not delete the previous post.I felt i could not explain the problem statement well.
Here t goes.I have a file say File1. Now i need a specific pattern from the lines to be added to the other line.
red blue green ABC.txt@ABC END
black... (1 Reply)
Discussion started by: ngupta
8. UNIX for Advanced & Expert Users
Is there any command where we can insert a line "2|||" before every line starting with "3|"
my input is as follows
2|EN_GB||Electrogalvanize 0.5 m2 ( Renault )
desired output... (10 Replies)
Discussion started by: laxmi131
9. Shell Programming and Scripting
Suppose I have a file which contains many lines,
play a little
getting hungry <---- insert a line after this line
come back home
getting hungry <--- insert a line after this line
go to... (2 Replies)
Discussion started by: uday610
10. UNIX for Dummies Questions & Answers
guys can anyone tel me how to insert a line in a file(bash) using line number
i wanna insert the line using LINE NUMBER...i know for inserting above or below a perticular line we can use sed a\ or i\....
thanks in advance.... (7 Replies)
Discussion started by: anj