Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:36 AM
To run the script based on dates rohit_shinez Shell Programming and Scripting 9 12-08-2017 02:08 AM
Delete files older than 1week(dates need to be calculate based on file name) Agoyals1986 Red Hat 2 06-23-2017 11:00 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 04: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 11:15 AM
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 04:21 AM
SQL: find if a set od dates falls in another set of dates vertical98 Programming 0 10-16-2010 01:31 AM
To find files with specific dates and cp another folder. *Jess* UNIX for Dummies Questions & Answers 2 03-17-2009 08:23 PM
Need script to generate all the dates in DDMMYY format between 2 dates frozensmilz Shell Programming and Scripting 2 01-29-2009 05:06 AM
Find files based on permissions dmilks Shell Programming and Scripting 1 07-28-2005 12:22 PM


All times are GMT -4. The time now is 05:30 AM.

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