1

Problem with expr command in shell script

view story
linux-howto

http://www.unix.com – Hi, I have used expr command to increment the date. for e.g., case 1 : Code: echo $(date -d $(echo `expr 20010101 + 1`)) it returns Code: Tue Jan 2 00:00:00 IST 2001 case 2: Code: echo $(date -d $(echo `expr 20010101 - 1`)) it returns Code: date: invalid date `20010100' please suggest me, how to solve the problem. Thanks and Regards Nanthagopal A (HowTos)