Mailing List Archive

Support open source code!


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

tlug: bash ?



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

Could one of you programmer types help me out on this one?

I'm trying to write a bash script that strips the header from
mail files before I print them (XFMail won't do this and often
the header is longer than the message) using ed. I must admit
that the ed man page gave me a headache;-(

ed $1 << EOF
1,/^[]*$/d
w
q
EOF

When I try to use this ed counts the number of lines then exits
with ?

This is happening with bash 1.14.5(1)

Thanks,

Jim S.

----------------------------------------------
Sent by: Jim Schweizer <schweiz@example.com>
On: 27-Mar-97 at: 17:32:49 JST
http://www1.harenet.or.jp/~schweiz/
"Here's something to think about:  How come you never see a
headline like `Psychic Wins Lottery'?"
                -- Jay Leno
----------------------------------------------
-----------------------------------------------------------------
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