Hi There,
I'm very new to ksh I have a script that goes into a folder that begins with a date and creates a file as follows:
#!/usr/bin/ksh
cd /work/sam/$(date +%Y%m%d)
touch hello.txt
this works to create a file called hello.txt in the path /work/sam/20080508/
now I want that to be minus 3 days? I've tried -3 and - %d3 with no joy - please can anyone help?
Cheers,
Sam
I'm very new to ksh I have a script that goes into a folder that begins with a date and creates a file as follows:
#!/usr/bin/ksh
cd /work/sam/$(date +%Y%m%d)
touch hello.txt
this works to create a file called hello.txt in the path /work/sam/20080508/
now I want that to be minus 3 days? I've tried -3 and - %d3 with no joy - please can anyone help?
Cheers,
Sam