4 Sep
2008
4 Sep
'08
03:46
David C. Rankin wrote:
Listmates,
I stumbled on a problem trying to read a file (email mailbox) line-by-line in bash. Using the built-in read, it strips the leading whitespace from each line
Hi David yes, that is exactly what read is intended to do.
I was using a while loop as follows:
[snip] So, you'd like to read the file line-by-line, do some tests on it, and write it back out, possibly modified?
Is there a bash trick that will preserve the whitespace?
How about sed ? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org