The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
list the files but exclude the files in subdirectories shyjuezy UNIX for Dummies Questions & Answers 8 10-15-2008 02:42 PM
How to generate a 'kill' list victorcheung UNIX for Advanced & Expert Users 10 05-15-2008 03:04 AM
List only the files chandran.m SUN Solaris 5 12-06-2007 03:03 PM
Help generate report from log files bucci Shell Programming and Scripting 4 08-24-2007 05:11 AM
how to generate a random list from a given list mskcc Shell Programming and Scripting 3 05-30-2006 04:30 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-13-2005
jasongr jasongr is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 11
how to generate a list of files

Hello people

I need to find a way to generate a file that contains the names of all *.jpg files that were generated after a specific date
The search should start in my current folder and recursively search inner folders
It would be best to list the file names one below the other in the output file

for example, list all the *.jpg files generated after Dec 13th at 5:00am

any help would be appreciated
regards
  #2 (permalink)  
Old 12-13-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
See Jims' solution in unix command/s to find files older than 2 hours in a directory

Modify the find as

Code:
find /dir/to/search -name '*.jpg' -newer somefile -print
Similiary, the timestamp in touch would correspond to Dec 13 5.00 AM
  #3 (permalink)  
Old 12-13-2005
jasongr jasongr is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 11
can you explain what should be substituted for C and S in
touch -t [[CC]YY]MMDDhhmm[.SS] somefile

I am not familiar with these (could S be seconds?)
What is C?
  #4 (permalink)  
Old 12-13-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
From info touch

Code:
`-t [[CC]YY]MMDDhhmm[.ss]'
     Use the argument (optional four-digit or two-digit years, months,
     days, hours, minutes, optional seconds) instead of the current
     time.  If the year is specified with only two digits, then CC is
     20 for years in the range 0 ... 68, and 19 for years in 69 ... 99.
     If no digits of the year are specified, the argument is
     interpreted as a date in the current year.
Yes, ss will be seconds.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0