![]() |
|
|
|
|
|||||||
| 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 |
| shell script to find and replace string in multiple files | pharos467 | Shell Programming and Scripting | 10 | 05-20-2008 08:39 AM |
| Shell script to find out 2 last modified files in a folder..PLZ HELP!!!!!!!!! | anju | Shell Programming and Scripting | 3 | 01-31-2008 10:47 PM |
| Find and Replace in multiple files (Shell script) | jatins_s | Shell Programming and Scripting | 13 | 11-05-2007 11:11 AM |
| shell script to find files by date and size | dadadc | UNIX for Dummies Questions & Answers | 1 | 10-20-2007 02:18 AM |
| shell script to find zero byte files | ramky79 | Filesystems, Disks and Memory | 2 | 09-14-2006 09:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a directory which contains files with different kinds of extensions .everyday a file with .log gets added to it .i want to extract the file with .log extension which is created with todays date .
thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I hope the below command will help you
ls | grep -e "`date "+%Y%m%d"`" | grep ".log" If the date (in format YYYYMMDD) is not part of the log file then, find . -mtime -1 -name "*.log" |
|
#3
|
|||
|
|||
|
thanks for the reply vijay
|
|||
| Google The UNIX and Linux Forums |