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

Find Date Stamp of a file

Status
Not open for further replies.

pinal78

Programmer
Aug 1, 2002
1
US
Hi,
I am writing a script that needs to read the
date (YYYYMMDD)a particular file was created and store it
in a variable that I can use later in my script.

Could pls. tell me how to go about this?

Thank you very much,

Pinal
 
To get the date in that format use the following command:

date +%Y%m%d

Hope it's what your looking for.
 
Oops, sorry, see it wasn't what you were looking for! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top