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)



On Fri, Apr 18, 2008 at 2:22 PM, Aidan Van Dyk <aidan@xxxxxxxx> wrote:
> * 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 $_'
>

which would be great if there were just one line and it was all
repeating chars, but it's not.  I only have the one thing in there as
a starting point for others to base off of.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions