Linux / UNIX Tech Support Forum
This is a discussion on Shell script tp Log files last line within the Shell scripting forums, part of the Development/Scripting category; i need a shell script, that checks a line in ftp logs (contineous checking like tail -f) and after checking ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Use something as follows:
Code:
tail -1 /var/log/file.name > output.txt Code:
tail -1 /var/log/file.name >> output.txt
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| linux , log files , tail , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script download mp3 files in bulk from a site | vivekv | Shell scripting | 6 | 17-04-2009 11:33 PM |
| HPUX Unix comparing 2 large files line by line | raj | HP-UX | 1 | 11-02-2008 05:20 PM |
| Shell script for automatic conversion of files in tar files | kasimani | Shell scripting | 2 | 08-02-2007 03:45 PM |
| shell script to open log files and check for faults | trueman82 | Shell scripting | 1 | 23-11-2006 02:35 AM |
| shell script that parses multiple log files and checks for a | Anonymous | Shell scripting | 1 | 15-11-2006 09:38 PM |