![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tail command and timestamp | Begins | Shell Programming and Scripting | 6 | 04-16-2008 03:17 AM |
| Problem with Tail command --urgent pls | subbukns | Shell Programming and Scripting | 4 | 09-21-2006 12:29 PM |
| tail command.. | amon | Shell Programming and Scripting | 2 | 06-02-2006 05:36 AM |
| tail command | whatisthis | Shell Programming and Scripting | 3 | 03-31-2005 10:34 AM |
| help with !(tail -2) command.. using pipes | sdlayeeq | UNIX for Advanced & Expert Users | 8 | 02-17-2005 03:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
tail command in SUN & HP_unix
Hi any SUN expert,
All the while I using HP-Unix. Now when i turned into SUN environment, I not sure how the command should look like in SUN sys. HP: tail -n3 file.log (this is the command i normally use) SUN: tail [-n +3] [file.log] (this 1 not work, donno where went wrong) Please help, thanks! |
|
||||
|
hey, anyway, thanks.
this command work i found in HP-UX, "tail -n3 file.log" in SUN, i use "tail -3 file.log", it is so simple :P i am not sure what version is this server also dont know how to check it but it is Sun Solaris |
|
|||||
|
no need for -n in HPUX for tail/head command...
BTW, You don't have to use the -n option for HPUX. I haven't used the -n option for several years, on either "head" or "tail" commands...
Are you using an old version of HPUX? 10.10 or older??? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|