![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| filtering the logs | prvnrk | Shell Programming and Scripting | 5 | 04-08-2008 06:57 PM |
| awk and sed filtering | invinzin21 | Shell Programming and Scripting | 2 | 01-10-2008 11:56 PM |
| port filtering | ujjwalmohan | HP-UX | 0 | 11-25-2007 09:18 PM |
| awk filtering ? | varungupta | UNIX for Advanced & Expert Users | 4 | 09-16-2007 11:55 PM |
| List grep results | slire | UNIX for Dummies Questions & Answers | 14 | 10-31-2006 07:42 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
filtering list results
I created a large file list using:
find . -type f -mtime +540 > test2.txt ..which searched recursively down the directory tree searching for any file older than 540 days. I would like to filter the results removing the directory name and the "/" character, resulting in only a list of the filenames, i.e.: directoryName/filename changed to, filename I think using sed or awk would work, but not entirely sure how to proceed. Thanks! |
| Forum Sponsor | ||
|
|