Adding to the front of a line

Matthew Flaschen matthew.flaschen at
Tue Jan 20 05:33:00 UTC 2009

Ray Parrish wrote:
> All I had to do in the end, was RTFM for the echo command to finally 
> discover the easy way to remove the line feed with -n, and remove the 
> extra space character after $site.

I don't think that's strictly right.  It results in a file with only CR
line separators, which isn't correct for Windows or *ix.  Removing the
space should have been sufficient.

> I will do some adaptations of this script with the one line methods 
> described by the others as well, as it never hurts to know more than one 
> method to accomplish something useful.

Definitely true.

Matt Flaschen

More information about the ubuntu-users mailing list