quoting bypass script?

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

 



[quoted lines by Jim Stevenson on September 17, 2001, at 04:33]

Hi:

>I missed the shell script that skips quoted lines starting with >.
>
>I would appreciate another post of it.

The single command:

    grep -v '^>'

will read standard input, remove lines which begin with ">", and write the
remaining lines to standard output. To put it into a script, create a file
which looks like:

    #!/bin/sh
    grep -v '^>'

and then make that file executable.

>Will it work in any unix mail progrram,
>to avoid the trouble of saving the file and processing it?

That's hard to say, since there are so many. It can certainly be made to work
with pine, which supports specifiable viewer filters.

>Thanks.

You're welcome.

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: dave@mielke.cc | Canada  K2A 1H7   | if you're concerned about Hell.





[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]