Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Date format to filename
Name: anilcgowda Date: August 11, 2005 at 15:39:00 Pacific OS: UNIX CPU/Ram: 1GB
Comment:
Hi,
I want a filename to be created with the date at the end of it(not the timestamp) in the format filename_YYMMDD. My command in shellscript would be: filename=filename_YYMMDD.
filename=filename_`date '+%y%m%d%H%M%S'` gives time also. If I specify filename_`date`, it doesn't come in YYMMDD.
Can you help me get the filename in yymmdd format.
Summary: Hi all, I am trying to change the date format from MM/DD/YYYY to MMDDYYYY in the fixed width file using shell. dates are in fields 19-28 and 29-38. Any help is greatly appreciated. Thanks ...
Summary: Hi all, I'm using ksh, and have a problem over date formatting and getting the difference between them. First of all, I need to remove some information to get the time from it. A timestamp from my lo...
Summary: Dear All, I'm using following script to calculate Yesterday's Date as a portion of a huge script. #!/bin/ksh set -A DAYS Sat Sun Mon Tue Wed Thu Fri Sat set -A MONTHS Dec Jan Feb Mar Apr May Jun Jul ...