Search Results

Search: Posts Made By: xXWiLdAcEXx
21,407
Posted By xXWiLdAcEXx
xXWiLdAcEXx-2:~ xXWiLdAcEXx$ DATE=`date +%d` ...
xXWiLdAcEXx-2:~ xXWiLdAcEXx$ DATE=`date +%d`
xXWiLdAcEXx-2:~ xXWiLdAcEXx$ echo $DATE
Thu 1 Sep 2011 14:00:33 AST

thats it...however when i do

xXWiLdAcEXx-2:~ xXWiLdAcEXx$ date +%d
01
...
21,407
Posted By xXWiLdAcEXx
I did the same thing actually, however, I kept...
I did the same thing actually, however, I kept getting the full date when I used echo $d and so I don't know how to execute the rest of what I want to do.

And I'm doing this in terminal (OS...
21,407
Posted By xXWiLdAcEXx
assign date to a variable
hi,

i've just started learning a bit of shell scripting and i wanted to know how to assign the value of the day of the month (i think the command for that is date +%d) to a variable say 'd' so...
Showing results 1 to 3 of 3

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