![]() |
|
|
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 |
| Perl script to rotate logs | theninja | Shell Programming and Scripting | 18 | 03-21-2008 03:06 PM |
| Startup script to clean out trash can | Andrek | OS X (Apple) | 4 | 10-19-2006 04:34 PM |
| clean up script | mpang_ | Shell Programming and Scripting | 1 | 07-18-2006 12:14 AM |
| writing script to clean up a directory | ajaya | Shell Programming and Scripting | 0 | 04-26-2006 11:18 AM |
| Script for reducing logs | piltrafa | UNIX for Dummies Questions & Answers | 2 | 11-09-2001 11:19 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script to clean nmon logs on AIX
I use NMON (Nigels Monitoring) in AIX. It creates a daily nmon log with the naming conventions of:
hostname_YYMMDD_0000.nmon or myserver_080902_0000.nmon What I am interested in doing is creating a script that is executed on the first of each month to clean up last months *nmon files. . .what I mean by clean up is that it would create a directory in the format of yyyymm and move all of last months files in that newly created directory. The problem is that each hostname is of different lengths (since I would be using this on different hosts). . .so it's difficult to use the "cut" command because the length of characters will differ from box to box. I would appreciate any assistance you can lend. outta. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|