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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative to "locate" command

Status
Not open for further replies.

Livia8

Technical User
Oct 29, 2003
130
IE
Hi,

I'm trying to find out in which directory a tmp file created today is. I usually use the "locate" command followed by the file name (with asterisks, if needs be), but that only works on files older than today. Could someone please suggest an alternative that would work for new items? I've tried with echo $[filename], but that returns only the file name and not its directory.

Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top