I have used the command
echo filename`echo $(/usr/xpg4/bin/date +%C) +1 |bc``date "+%y%m%d"`.csv
i am getting filename21110830.csv as required, but the same command when used in a shell script, iam getting error saying
syntax error at line 1: `(' unexpected
Please let me know,what could be...
Hi,
I wanted to display Century in Unix.
I tried with date +"%C"
Which is displaying Mon Aug 29 12:54:54 BST 2011. (Used capital C).
and when used date +"%c"
Displaying Mon Aug 29 12:54:33 2011. (used Small c)
But i want century (21) to get displayed. Please let me know how can i do that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.