2 Jun
2005
2 Jun
'05
02:26
Patrick, On Wednesday 01 June 2005 14:31, Patrick B. O'Brien wrote:
No,
Here is the line in my script and the report, hmm?
echo "\n############# New /etc/aliases file from Listserv ###############" >> $outfile
You need to specify the "-e" option (as Anders J. illustrated) to get C-like escape sequences interpreted by the BASH built-in echo command. You can also get the escapes interpreted in the string constants themselves: % echo $'Here comes a newline:\n' (which would yield two newlines, one from echo after the arguments are echoed and one from the string constant itself). The advantage of $'string-with-escapes' is that it works regardless of which command the string is passed to. Randall Schulz