![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Setting basename and dirname variable to simply script. | liketheshell | Shell Programming and Scripting | 1 | 09-12-2007 01:36 PM |
| Extracting part of the basename | madhunk | Shell Programming and Scripting | 3 | 02-13-2007 11:54 AM |
| reverse of basename | braindrain | Shell Programming and Scripting | 7 | 10-03-2006 02:24 AM |
| need grep to output basename and line# | zoo591 | Shell Programming and Scripting | 18 | 07-16-2005 10:34 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 06:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using find command with awk or basename
Hi,
I am using the following command to extract any log files that are older than 3 days using the following command. find DIR/LOGDIR -type f -mtime +3 |grep LOG > log_list.out The results are DIR/LOGDIR/1.LOG DIR/LOGDIR/2.LOG DIR/LOGDIR/3.LOG DIR/LOGDIR/4.LOG How do inculde (basename or awk ??) to extract just the file name instead of the complete directory like in log_list.out file. 1.LOG 2.LOG 3.LOG 4.LOG Thanks all. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|