HylaFAX The world's most advanced open source fax server |
* 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