11-01-2005
Sorry moxxx68.
You posted an example sed command:
sed '/\.$/G;/[0-9]*;G;' filename
This command adds an extra 'return' character at the end of each paragraph and after each time stamp. This work fine as far as I can tell.
You also said that you sometimes get extra new lines or control charcters inserted accidentally. What do you mean by this? Are these characters in the original files or after you have run the sed command on them?
8 More Discussions You Might Find Interesting
1. Solaris
Hi,
I am running a script from a client machine X which does "SSH" to around 100 other machines in a farm and invokes a local script on each of those machines. Local script localscript.sh on each of those 100 target machines, does some machine specific function like fetch the specific machine's... (1 Reply)
Discussion started by: waavman
1 Replies
2. UNIX for Dummies Questions & Answers
Hallo everybody
I am having a shell script called auto_run.sh in that only the first line works.
the second line which has sed command is working only at the # prompt. not within the shell script. What could be the reason.
*... sed 's/ //g' KTI >abc works in another shell script without the... (6 Replies)
Discussion started by: naushad
6 Replies
3. UNIX Benchmarks
I downloaded bm.zip, unzipped, compiled and run no problem on this SCO OSR 5.0.7, but resulting log shows "no measured results" in all categories. Any ideas? (1 Reply)
Discussion started by: migurus
1 Replies
4. What is on Your Mind?
If you people find something funny like these go ahead and post it :) (5 Replies)
Discussion started by: vidyadhar85
5 Replies
5. What is on Your Mind?
Guys,
This is funny.
http://i28.photobucket.com/albums/c228/jralph2005/bart.png
jaysunn (2 Replies)
Discussion started by: jaysunn
2 Replies
6. What is on Your Mind?
Annoyances.org - Upgrading to Wife 1.0 (0 Replies)
Discussion started by: jgt
0 Replies
7. UNIX for Dummies Questions & Answers
what is the back up command to take back up files and syntax (1 Reply)
Discussion started by: sunilamarnadh
1 Replies
8. Shell Programming and Scripting
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Discussion started by: 915086731
0 Replies