Just thought I would pass this on to any amateur bash scripters out there.
Speaking of outrages, I just spent an hour or two debugging a script that
strips data out of a flat text file.
I do a lot of echo $string | sed etc..etc to get my strings parsed.
I knew that echo strips out leading
blanks, but not embedded blanks!
Try this:
a="b c d      e f"
echo $a
Surprised? I was.
The correct method is echo "$a".
Joel

_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to