Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

using sed

Name: Anonymous 2010-06-03 20:08

I'm trying to use sed to append "/0.0.0.0" to the end of each line in a file

sed -i 's;$;/0.0.0.0;g' file.txt

problem is most of the time, "/0.0.0.0" is made as a new line after the existing ones, instead of being appended to the ends of the lines

so instead of:
text/0.0.0.0

I get:
text
/0.0.0.0

Name: Anonymous 2010-06-04 4:19

>>26
Oh, silly /prog/lodyte.  Why must you project your inadequacy onto others?  It's really quite shameful.

You know, there was a time when /prog/ was inhabited by actual expert programmers.  Now it seems we let in the average five-year-old who believes that answers only come from some mystical place beyond the stars.  Who accuse geniuses of ``not knowing'' that which a mere second's deduction would reveal.  Very, very shameful.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List