On Thu, Sep 27, 2007 at 10:28:58AM +0000, mukyvelous2k5 wrote:
> How do i write a command for tail tail -n 


I'm not quite sure of your question--if you mean you want to, for
example, get the last line of the file it would be something like
(If your file's name was myfile)

tail -1 myfile.  (I suspect I'm missing your question because it seems
from your post as if you understand that already.)

If you want more than the usual ten lines, you can do that too.

tail -100 myfile

If you need to get the 5th line of file you sometimes have to use head
in conjunction with tail.

head -5 myfile |tail -1  

That prints the first five lines of myfile then pipes it to tail to grab
the last line. 


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


 Colonel: Every inch of this installation is under constant, 24-hour
surveillance.
 Willow: Including the secret lab?
 Colonel: Everything! (pause) What secret lab?


To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to