The UNIX and Linux Forums  

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
files created with different permissions steria_learner UNIX for Advanced & Expert Users 2 07-16-2008 06:25 PM
Files created by particular user Anshu UNIX for Dummies Questions & Answers 2 06-13-2006 09:12 AM
Last modification times of files less than 6 months old Abhishek Ghose UNIX for Dummies Questions & Answers 1 10-19-2005 08:37 AM
files created within last 10 mins frustrated1 UNIX for Dummies Questions & Answers 5 08-03-2005 11:09 AM
Two Files Created For Every One? Atama UNIX for Dummies Questions & Answers 1 04-12-2002 05:44 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-24-2008
ajp7701 ajp7701 is offline VIP Member  
Supporter
  
 

Join Date: Dec 2007
Posts: 63
ls -l all files created between two times

solaris 8 and solaris 10
c shell

I have a /local/tmp/ directory that is cleared out every day and files are created in it all day long from 0000 - 2359 (24 hour clock) A new file is created in this directory every couple of minutes.

I want a script "rrtime" that takes two arguments hhmm1 and hhmm2 and lists all files in /local/tmp/ that were created between hhmm1 and hhmm2... the times are given in 24hour format, for example 1500 - 1600
Sounds easy enough? If somebody could give me an example script, even one that is SIMILAR to what I need here....that would be awesome!
thank you so much!

example usage: rrtime 1500 1600
(this would list all files in /local/tmp/ created between 15:00 and 16:00)
 

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 07:21 AM.


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