I'm trying to take the command `date` giving me:
Fri Feb 22 09:23:52 EST 2008
and using some command take out the rest of the string leaving me with
"Fri Feb 22"
any help appreciated hopefully thanks in advance
I'm trying to take the command `date` giving me:
Fri Feb 22 09:23:52 EST 2008
and using some command take out the rest of the string leaving me with
"Fri Feb 22"
any help appreciated hopefully thanks in advance
Use the Field Descriptors for 'date':
$ date +"%a %b %d"
thanks a lot
The man page (or info) for date gives you what all of these format specifiers are.
There are a lot of them. GNU date (usually on Linux) has extras, and extra functionality POSIX date does not have those extras.
-- POSIX is a unix standard for commands, etc.