Chris,
Thanks.
-----Original Message-----
From: Chris Hagemaier
[mailto:oracledba-ezmlmshield-x16834400.[Email address protected]
Sent: Wednesday, May 04, 2005 1:24 PM
To: LazyDBA Discussion
Subject: RE: Using the SED Command (Unix) [heur]
Ed-
The simple version...
Put that line in a script (called delines).
Then execute "delines 100"
sed '1,$1d' < test1.txt
$1 will equal 100 ($1 being the first argument).
-----Original Message-----
From: Edwards Ed
[mailto:oracledba-ezmlmshield-x58170981.[Email address protected]
Sent: Wednesday, May 04, 2005 10:11 AM
To: LazyDBA Discussion
Subject: Using the SED Command (Unix)
To All,
I want to delete the first 100 lines out of a text file using sed. I
typed the following sed command:
sed '1,100d' < test1.txt
Does sed allow you to use a variable instead of using the "100"? If
so, how do you use it?
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com To unsubscribe:
see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com By using this list you agree
to these terms:http://www.lazydba.com/legal.html
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
Douglas County, Oregon
www.co.douglas.or.us
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
Oracle LazyDBA home page