Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding files older than 2 hours

Status
Not open for further replies.

midge25

Programmer
Jul 19, 2002
9
Hi,

I am writing a shell script(ksh) to find flat files older than 2 hours.

I have touched a temp file and modified its time and then used a find command but it gets tricky when you get to the end of the month and the start of the year.

Is there any alternatives I can use???

I am sure I saw a method that uses about 2 lines but I cant remmeber where.

Thanks in advance,

Midge25
 
Maybe thread822-355004 will help
;-) Dickie Bird
db@dickiebird.freeserve.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top