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.
get weekday from date
Name: gjoob Date: November 17, 2003 at 08:24:35 Pacific OS: Compaq Tru64 CPU/Ram: f
Comment:
I'm trying to rename a file from gjoob.txt to gjoob_monday.txt depending on the day of the week. I can get the current day of the month by typing `date '+%d'` but is there anyway to calculate the weekday from the date?
Summary: I have a backup directory with a few hundred thousand files, several thousand from each day. I want to tar up the files into 1 or more files for each day. I can use the find command with -mtime to g...
Summary: Hi Luke Many thanks for your reply. I found from the link specified by you , we can get yesterday's date by assignment TZ=aaa24 date +%Y%m%d. But I am not able to get logic , how we can find a wee...