Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: bash ?
- To: tlug@example.com
- Subject: Re: tlug: bash ?
- From: Jason Molenda <crash@example.com>
- Date: Thu, 27 Mar 1997 18:53:29 +0900 (JST)
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=US-ASCII
- In-Reply-To: <XFMail.970327174844.schweiz@example.com> from "Jim Schweizer" at Mar 27, 97 05:32:49 pm
- Reply-To: tlug@example.com
- Sender: owner-tlug
-------------------------------------------------------- tlug note from Jason Molenda <crash@example.com> -------------------------------------------------------- > I'm trying to write a bash script that strips the header from > mail files before I print them 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' will do what you want, I think. It still leaves a blank line at the beginning of the output stream which seems inelegant to me, but it becomes less aesthetic to deal with it so I leave that as an exercise. :) Jason ----------------------------------------------------------------- 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
- Follow-Ups:
- Re: tlug: bash ?
- From: Jim Schweizer <schweiz@example.com>
- Re: tlug: bash ?
- From: "Francis Brian O'Carroll" <ocarroll@example.com>
- References:
- tlug: bash ?
- From: Jim Schweizer <schweiz@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: Re: bash ?
- Next by Date: Re: tlug: bash ?
- Prev by thread: tlug: Re: bash ?
- Next by thread: Re: tlug: bash ?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links