Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Adding date to variable
Name: nmf Date: October 19, 2005 at 10:37:35 Pacific OS: OSX CPU/Ram: 1.25 g 256 mb
Comment:
I'm attempting to insert the current date into a string of variable text. Here is my example and result begin="this is a test" datevar='date +%Y-%m-%d' end="this is the end" rest=$begin$datevar$end echo $rest
This returns this is a testdatevar=date +%Y-%m-%dthis is the end I just need the current date within the text.
Summary: hi all, This is regarding ksh script. I have a ftp script which does fine job in copying files to remote server. But i still have a small problem to solve. Directories are been created in the ser...
Summary: Dear All, My OS : Solaris and Shell is ksh. I have a requirement to assign date to a variable. I tried following and failed. myvar=date '+ %y%m%d_%h' After that I need to do an awk fo all the files co...