HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxmail and the first page (with body of email)



* Chris Weiss <cweiss@xxxxxxxxx> [080418 15:07]:
 
> --start script--
> #!/bin/bash
> 
> IFS=""
> while read x1
> do
>         if [ "$x1" =
> "-----------------------------------------------------------------" ]
>         then
>                 x1=""
>         fi
>         echo "$x1"
> done

Simpler filters, to "blank" the line:
	sed -re 's/^-+$//'
	sed -e 's/^--*$//'
	perl -pe 's/^-+$//''

Or you can completely drop the line:
	grep -Ev '^-+$'
	grep -v '^--*$'
	perl -pe '/^-+$/ && undef $_'

a.

-- 
Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/

Attachment: signature.asc
Description: Digital signature




Project hosted by iFAX Solutions