I'm an idiot and sed proves it...
I've been trying to use sed to do some editing of simple characters from a
large block of ascii text. The text has tabs that I wish to replace with
spaces, and hyphonated words wrapped across linefeeds that I also wish to
remove.
For the tabs, I try the following:
sed -e 's/'\t'/ /g' <infile >outfile
Which very cleanly places every t in the document with a space!??
For the hyphonation I try:
sed -e 's/-'\n'//g' <infile >outfile
and although the file gets slightly smaller (I didn't try to find out just
what had been removed) none of the hyphonated text is corrected.
I read the man page on sed, which pointed me to the backslash "special"
characters, but gave no examples of their use. I have tried to figure this
out looking at other examples, but am not making any headway.
While I am positive that my problem is simple, I'm too much of an idiot to
figure it out on my own. Can someone point me in the right direction?
Thanks in advance,
Dwarf
--
_-_-_-_-_-_- _-_-_-_-_-_-_-
aka Dale Scheetz Phone: 1 (904) 656-9769
Flexible Software 11000 McCrackin Road
e-mail: dwarf@polaris.net Tallahassee, FL 32308
_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: