Unix/Linux Go Back    


Shell Programming and Scripting 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

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-10-2010   -   Original Discussion by krux_rap
krux_rap's Unix or Linux Image
krux_rap krux_rap is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 29 August 2017, 9:21 PM EDT
Posts: 37
Thanks: 15
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 12-10-2010   -   Original Discussion by krux_rap
methyl's Unix or Linux Image
methyl methyl is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 8 June 2016, 9:58 PM EDT
Posts: 6,402
Thanks: 288
Thanked 676 Times in 645 Posts
To list all the file names for December 2010 .

Code:
ls -1 B20_abc_ancdfefg_20101209_INCR_201012???????.TXT.gz

Sponsored Links
    #3  
Old Unix and Linux 12-10-2010   -   Original Discussion by krux_rap
anurag.singh's Unix or Linux Image
anurag.singh anurag.singh is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 12 July 2012, 8:07 AM EDT
Location: Hyderabad, India
Posts: 413
Thanks: 13
Thanked 99 Times in 96 Posts

Code:
ls *INCR_20101210*

more specific search

Code:
ls *INCR_20101210*TXT.gz

Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SQL: find if a set od dates falls in another set of dates vertical98 Programming 0 10-16-2010 02:31 AM
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
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:54 AM.