![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
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 |
| help with !(tail -2) command.. using pipes | sdlayeeq | UNIX for Advanced & Expert Users | 8 | 02-17-2005 03:46 AM |
| tail command in SUN & HP_unix | clemeot | UNIX for Dummies Questions & Answers | 3 | 05-08-2002 12:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Well, if you check the man pages for head and tail, you will find why this is so: man head: head [-c|-l] [-n count] [file ...] man tail: tail [-f] [-b number] [file] The ... in the head manpage shows that head can take multiple filenames in input, while tail cannot. You can check tail of all files in a directory as follows: Code:
for file in *; do tail -1 $file done |
|
|||||
|
Or download GNU tail...
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|