From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cf1bd14138be1116 X-Google-Attributes: gidfee84,public From: test Subject: Re: Line Feed's in Syslog Date: 1998/01/15 Message-ID: <34BEA0B5.4B14@test.com>#1/1 X-Deja-AN: 316327371 Content-Transfer-Encoding: 7bit References: <884884024.2030764040@dejanews.com> To: sw@pelikan.de Content-Type: text/plain; charset=us-ascii Organization: Healthsource Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 sw@pelikan.de wrote: > > Hi all, > > i'm trying to tell cron that it send's me the daily syslog of our firewall > by e-mail. > with the command > mailx sw@domain < /usr/var/adm/firewall.log > i receive that mail. > that works. > > but in the e-mail there are no "line feeds" after each line. > the whole log-file appears a one line so it is really > unreadable. > > is there a way to convert that log-file so that are line-breaks > after each line ? > > thanx in advance > sascha Try running it through fold before redirecting it to mail: fold /usr/var/adm/firewall.log > /usr/var/adm/fold.firewall.log mailx sw@domain < /usr/var/adm/fold.firewall.log -- Mark Greene My real address: mailto:greenemj@hlthsrc.com The above opinions are mine, not my employer's.