homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
head and tail commands
shwetha

10+ Year Member



 
Msg#: 992 posted 8:58 am on Mar 11, 2004 (gmt 0)

Hi,

i wanted to as to how can i display the lines 25 through 75 lines using head,tail commands.as using head or tail we cannot give the range.

$tail +25 abc.sh

please reply to me at the earliest.

 

DaScribbler

10+ Year Member



 
Msg#: 992 posted 9:45 am on Mar 11, 2004 (gmt 0)

If you have to use the head and tail command just do this...

head -75 <file> ¦ tail -50

seindal

10+ Year Member



 
Msg#: 992 posted 11:00 pm on Mar 11, 2004 (gmt 0)

Real unix people use sed:

sed -n 25,75p you-file-here

René

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved