Adding to the front of a line
Ray Parrish
crp at cmc.net
Tue Jan 20 08:01:54 UTC 2009
Matthew Flaschen wrote:
> 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
>
>
Thanks again. I removed the -n and it resulted in output without the
extra line feeds also. But it's too late, as since I thought I had it
right before, I had already mailed out the previously modified file to
my Windows people. I guess I can still send out an amended email with
the new version attached 'though.
Whenever I get ambitious enough to reinstall Windows XP on my seriously
infected Windows side of this dual boot machine, I'll give both versions
of the output a test just to satisfy myself as to their differences. I'm
not in much of a hurry, as Ubuntu is still working great, and I'm not
anxious to go through the process of setting up all of the extra
programs needed by Windows, only to once again have ineffective
protection from getting infected. 8-)
At least getting infected taught me to never again respond to spam. The
one time I allowed myself to be enticed by a spam email, into earning
money by taking online surveys, they turned out to be serving trojans
with the surveys! Windows Live One Care from Microsoft didn't detect a
thing, and I didn't discover my mistake until I scanned the Windows
drive with clamav from within Ubuntu.
But now I've strayed way too far off topic, so I'll shut up and send this.
Later, Ray Parrish
--
http://www.rayslinks.com/ Web index of human reviewed links.
<http://www.rayslinks.com/Troubleshooting%20and%20fixing%20Windows.html>
Trouble shooting and Fixing Windows
http://www.writingsoftheschizophrenic.com My poetry in web pages
More information about the ubuntu-users
mailing list