![]() |
|
|
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 |
| Find files size 0 within a directory | astonmartin | Shell Programming and Scripting | 3 | 02-07-2008 04:49 PM |
| Find files in directory and its subdirectory | jyotib | Shell Programming and Scripting | 11 | 01-24-2008 04:19 PM |
| find files and copy into a directory | balireddy_77 | Shell Programming and Scripting | 4 | 04-27-2007 04:38 AM |
| How to find the count of files in a directory | sish78 | UNIX for Dummies Questions & Answers | 5 | 02-01-2007 03:58 PM |
| find directory with 2 types of files | dangral | UNIX for Dummies Questions & Answers | 2 | 10-13-2004 02:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find files in directory
Hi all
I want to find a particular file type lets say .abc under /home/oracle/, the file name is start with 'D' and followed by ddmmyyyy date format, the file name should look like this D19092008.abc To my question, how can i perform the searching from the date 19/09/2008 to 29/09/2008. The folder contains many files, to speed up the searching, i tried the following script : for i in `find /home/oracle/ -name D*.abc` Can i set the date range to the file name? Regards |
|
||||
|
Thanks danmero, it works prefectly with your script, however, when i try to convert to this Code:
for j in `ls /home/oracle/D{$day1..$day2}*.abc 2>/dev/null`
It doesnt show anything. $day1 and day2 are the day of the month One more question, could it be possible to set the range not only for the day, but also include the month. Thanks many |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|