| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Unix- How to remove the first few lines(N) in a file without
Lets not forget about the vernerable ed...
# # strip of the header of the input file #
Ron Thomas
Hypercom, Inc
rthomas_at_hypercom.com
Each new user of a new system uncovers a new class of bugs. -- Kernighan
tanel.poder.003_at_m
ail.ee To: ORACLE-L_at_fatcity.com
Sent by: cc:
ml-errors_at_fatcity Subject: Re: Unix- How to remove the first few lines(N) in a file without
.com
09/16/2003 05:54
AM
Please respond to
ORACLE-L
(reposting)
Afaik, vi can run in non-interactive, "batch" mode too. But I'd go with tail +6
Tanel.
> Mladen ,I want to automate this thing. So don't want
> to go with :1,5d stuff
>
> --- Mladen Gogala <mgogala_at_adelphia.net> wrote:
> > The best thing to do would be something like:
> > vi filename
> > :1,5d
> > :x!
> >
> > That would do the trick.
> > Also this:
> >
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: tanel.poder.003_at_mail.ee Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Ron Thomas INET: rthomas_at_hypercom.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Sep 16 2003 - 11:39:51 CDT
![]() |
![]() |