script to Find the files based on dates it came

Tags
shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 12-10-2010
script to Find the files based on dates it came

I need a script to get the files for DEC
the file format will be
B20_abc_ancdfefg_20101209_INCR_201012100145.TXT.gz

Based on the bold ones (date) i need to get the files


can any one help me plzzzzzz
# 2  
Old 12-10-2010
To list all the file names for December 2010 .
Code:
ls -1 B20_abc_ancdfefg_20101209_INCR_201012???????.TXT.gz

# 3  
Old 12-10-2010
Code:
ls *INCR_20101210*

more specific search
Code:
ls *INCR_20101210*TXT.gz

Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Call script parameter based on dates Master_Mind Shell Programming and Scripting 4 05-15-2018 10:36 AM
To run the script based on dates rohit_shinez Shell Programming and Scripting 9 12-08-2017 03:08 AM
Delete files older than 1week(dates need to be calculate based on file name) Agoyals1986 Red Hat 2 06-23-2017 12:00 PM
How to find list of missing files based on the file format? nalu Shell Programming and Scripting 9 05-24-2017 09:29 AM
How to find all files other than last two dates per month and year? Makarand Dodmis Shell Programming and Scripting 16 05-02-2014 05:55 AM
How to find all files other than first two dates & last date per month and year? Makarand Dodmis Shell Programming and Scripting 6 04-25-2014 12:15 PM
Find all files other than first two files dates & last file date for month Makarand Dodmis UNIX for Advanced & Expert Users 16 04-15-2014 05:21 AM
How to list the files based on the modification time using the find command? Kesavan Shell Programming and Scripting 6 03-06-2012 11:59 AM
SQL: find if a set od dates falls in another set of dates vertical98 Programming 0 10-16-2010 02:31 AM
Bash snippet to find files based on a text file? DJ Charlie Shell Programming and Scripting 14 04-02-2009 01:13 PM
To find files with specific dates and cp another folder. *Jess* UNIX for Dummies Questions & Answers 2 03-17-2009 09:23 PM
Need script to generate all the dates in DDMMYY format between 2 dates frozensmilz Shell Programming and Scripting 2 01-29-2009 06:06 AM
Remove/Find files based on position pattern kumarn Shell Programming and Scripting 1 06-24-2008 03:53 PM
Find files based on permissions dmilks Shell Programming and Scripting 1 07-28-2005 01:22 PM
Find files based on time budrito UNIX for Advanced & Expert Users 4 10-08-2004 06:18 AM
All times are GMT -4. The time now is 09:15 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?