Mailinglist Archive: opensuse-programming (53 mails)

< Previous Next >
Re: [suse-programming-e] line feed
  • From: Jerry Feldman <gaf@xxxxxxx>
  • Date: Thu, 2 Jun 2005 08:03:33 -0400
  • Message-id: <200506020803.34052.gaf@xxxxxxx>
On Wednesday 01 June 2005 5:31 pm, 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
>
>
> \n############# New /etc/aliases file from Listserv ###############

Try:
echo -e "\n# New /etc/aliases file from Listserv #########"

I've shortened this to prevdent line wrap.
Read the man page from echo(1)
The -e option enables the escape characters.

--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9

< Previous Next >
References