Adding to the front of a line
matthew.flaschen at gatech.edu
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.
More information about the ubuntu-users