Search Results

Search: Posts Made By: Dream86
13,144
Posted By Dream86
Great, thank you very much :) I just needed...
Great, thank you very much :)

I just needed to add a '_' (FECHA=`date '+%m_%d_%C%y' | sed 's/^0//;s/_0/_/'`) to make it exactly as the format i needed it to be
13,144
Posted By Dream86
Thank you for your response. But i still get...
Thank you for your response.

But i still get the same out put with 0's for month and day present
for example 06_08_2005 (instead of 6_8_2005)

Nina
13,144
Posted By Dream86
Hi, when i use DT=`date +"%m_%d_%Y"` ...
Hi,

when i use DT=`date +"%m_%d_%Y"` in a tcsh shell, i get the message that
DT=06_08_2005: Command not found.
Actually for any variable assignment (even the very basic ones like ...
13,144
Posted By Dream86
Thank you for your response. It did not work...
Thank you for your response.

It did not work though. I got the following error:

date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
...
13,144
Posted By Dream86
Changing the date format
Hi,

I know there is a Q/A section and lots of posts regarding date command here. I am sorry to start a new thread. I am very new to shell scripting (actually i am working on my first program),...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 03:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy