Mailing List Archive

Support open source code!


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

Re: tlug: bash ?



--------------------------------------------------------
tlug note from Jim Schweizer <schweiz@example.com>
--------------------------------------------------------

On 27-Mar-97 Jason Molenda wrote:
>So you're trying to remove all lines until the first empty
>line, right? sed is the command you need.  Sed does all! :)
>
> cat foo | sed '1,/^$/d'

This indeed does the job, and I would add:

cat foo | sed '1,/^$/d' >foo2

to save the file for later reading/editing. 

I like Jim T's suggestion to pipe it to lpr and:

>Even better if you can stick such a filter into your mailer's
>save or print function.  (Or maybe even make a special printer
>entry with such a default filter?)

I'll work on that one tonight after the kids go to bed.

Thanks,

Jim S.

----------------------------------------------
Sent by: Jim Schweizer <schweiz@example.com>
On: 27-Mar-97 at: 19:15:01 JST
http://www1.harenet.or.jp/~schweiz/
Computer programmers do it byte by byte
----------------------------------------------
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links