<<< Date Index >>>     <<< Thread Index >>>

Re: Keep Forgetting Attachments!



* Bennett Todd (bet@xxxxxxxxx) [040616 15:54]:
> Darn it, I bungled the regexp. Here's mutt-editor as I use it now:
> 
>       #!/bin/sh
>       ${VISUAL:-${EDITOR:-vi}} $1
>       egrep 'attach(ment|ed)' $1 >/dev/null || exit
>       echo -n 'Do you need to attach a file? '
>       read ans

wouldn't  this be better:
egrep 'attach(|ment|ed)'

Ciao!

-- 
A language that doesn't affect the way you think about programming is not
worth knowing.

The Doctor What: Need I say more?                http://docwhat.gerf.org/
docwhat *at* gerf *dot* org                                        KF6VNC