Anders Johansson wrote:
On Monday 05 February 2007 20:09, Brian Jackson wrote:
On Monday 05 February 2007 11:01, Jan Karjalainen wrote:
Somehow all these examples add the ",on" on a new line after each
line, like this:
208.34.234.48-208.34.234.63
,on
208.34.235.32-208.34.235.63
,on
etc...
I want them to look like this:
208.34.234.48-208.34.234.63,on
208.34.235.32-208.34.235.63,on
etc...
Did your input file come from a DOS (ie windos) computer?
The sed examples work just as well as the perl on I mentioned. if your
file does have ^M's in it, you can strip them with this
perl -pi -e 's/^M//g; s/$/,on' FILE
or
dos2unix filename
dos2unix is in the dos2unix package, which should be installed by default
Yes, it was the ^M that did it.
Thanks for all the help!
/J
--
"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. Van De Snepscheut
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]