9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for sed command or script which will append word at end of line. for example. I want to validate particular filesystem with mount |<filesystem name> command. if nodev parameter is not there then it should add in the fstab file with receptive to the filesystem.
# mount... (8 Replies)
Discussion started by: ghpradeep
2. UNIX for Dummies Questions & Answers
Need some help with sed.
I have a file that has sections :
There's many sections in the file. (1 Reply)
Discussion started by: andyatit
3. Shell Programming and Scripting
Am trying to send mail using the mail command, but the mail command is working but its not sending automatically after pressing .(dot) in the command prompt it sends . How to achieve that. Also it showing the below line after pressing the dot .
/home/abc1/dead.letter... Saved message in... (5 Replies)
Discussion started by: rogerben
4. UNIX for Dummies Questions & Answers
I'm trying to merge a lot of files, but I want to include the filename to the end of each line. I've tried to use cat, but I got stuck.
My files are for example:
123456 aaa ddd ee
458741 eee fff ee
478596 uuu ddd ee
145269 ttt fff ee
... (4 Replies)
Discussion started by: ernesto561
5. Shell Programming and Scripting
I have a doubt in sed, i want to add some parameter at the end of the tag inside a xml tag. how to i do that. so i want to add Results="true" value="high" inside the xml tag.
<execute description="Stop Servlet">
After adding the... (5 Replies)
Discussion started by: asirohi
6. Shell Programming and Scripting
sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml
The first part
-e 's/^/str += "/'
works as intended, but the second part
adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
7. Shell Programming and Scripting
Im trying to add 5 blank spaces to the end of each line in a file in a sed script. I can figure out who o put the spaces pretty much anywhere else but at the end.
Karl (7 Replies)
Discussion started by: karlanderson
8. Shell Programming and Scripting
could anyone tell me the command to append spaces at the end of the line.
for example, i need 1000 spaces after the word "helloworld"
echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical.
as i am totally new... (3 Replies)
Discussion started by: kavithacs
9. UNIX for Dummies Questions & Answers
how can I add data from command line to end of file? (3 Replies)
Discussion started by: bryan