Re: Reading a particular line in a file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: george@georgetoft.com
Date:  
To: plug-discuss
Subject: Re: Reading a particular line in a file
-To print one line of text:
sed -n "${INDEX}p" filename
(where INDEX is the line # or numbers)

George Toft


> Is there a command line argument that lets you grab a particular line from
> from a text file in Linux or Unix?
>
> Thanks,
>
> Ben
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss