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

Recent content by Queenyunix

  1. Queenyunix

    How to display century in UNIX.

    Hi, got my result by giving filename"`/usr/xpg4/bin/date +'%C + 1' | bc`"`date "+%y%m%d"`.csv Thank you all.. :)
  2. Queenyunix

    How to display century in UNIX.

    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...
  3. Queenyunix

    How to display century in UNIX.

    Because i need to send a file with name given as 21110830. Please suggest me what else can be done?
  4. Queenyunix

    How to display century in UNIX.

    Actually i wanted to display the complete date along with century like 21110830. For this i used date +%C%y%m%d But not working.. :(
  5. Queenyunix

    How to display century in UNIX.

    Hi both the commands are working. but its giving 20. I need century 21 to be displayed. Thank you.
  6. Queenyunix

    How to display century in UNIX.

    hi, Thanks for the reply.. Version is SunOS bfu226a002 5.9 Generic_118558-13 sun4u sparc SUNW,Sun-Fire-V240 Please suggest what can be done.
  7. Queenyunix

    How to display century in UNIX.

    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.

Part and Inventory Search

Back
Top