05-08-2008
rd=`date +%d/%m/%y`
echo $rd
hope that help
9 More Discussions You Might Find Interesting
1. Solaris
Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE.
Does someone know how to get around this?
Thanks! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
2. UNIX for Dummies Questions & Answers
Hello
if I like to move file from defined directories system to new directory that not contained any directories system structure .
But I like to create the same file system structure as source directory for example :
I have 2 directories: foo1 and foo2
foo1 have directories and foo2 have... (2 Replies)
Discussion started by: umen
2 Replies
3. UNIX for Dummies Questions & Answers
I was experimenting with redirection. Manual says
>&digit --> standard output is redirected to the file descriptor digit
I tried
exec 3>myout
exec >&3
This sent all the output to myout. Nothing was coming on the screen. I was thinking duplication will result in output similar to what... (7 Replies)
Discussion started by: ranj@chn
7 Replies
4. Shell Programming and Scripting
i have a script in bourne called cdrsnokia.sh and inside of it calls a script called resta_dias where it calls the datecalc script (perderabos date calculator).
The purpose is to rest (-) one day arithmetical operation the content of each line and the result is passed to another file lista2;after... (1 Reply)
Discussion started by: alexcol
1 Replies
5. Shell Programming and Scripting
Is there no simple way using 'date' command just to get number of days from given date.
ie. if I pass 2007-01-15 as an argument. I want to obtain result as 015
Simarly for 2007-02-10. I want to obtain result as 41.
Can't this be achieved by simple 1 or 2 lines of command (date). As this is... (1 Reply)
Discussion started by: tostay2003
1 Replies
6. UNIX for Dummies Questions & Answers
Hello:
I need to generate two datetimestamps in one hour apart.
the start date is 05262008000000
then generate the following dates
05262008010000
05262008020000
05262008030000
... ... ...
... ... ...
05262008230000
05272008000000
05272008010000
05272008020000
05272008030000
...... (5 Replies)
Discussion started by: ucbus
5 Replies
7. UNIX for Dummies Questions & Answers
I have a doubt in date conversion. Can anyone explain the logic behind the date2jd and jd2date in datecalc function specified in this forum. I could not understand what the number are actually representing. Please explain...bcoz i am doing a program with this one..
Note: No need to... (1 Reply)
Discussion started by: sivakumar.rj
1 Replies
8. Shell Programming and Scripting
i'm trying to parse a file with lines like the below where i need to get a diff on the 169-182 so that the result is 13 for instance. I was looking into using bc but am not that familiar with embedding it in a script.
john8:9. 169-182
any ideas are appreciated! (5 Replies)
Discussion started by: nlevens
5 Replies
9. Shell Programming and Scripting
Hi guys.
I am trying to subtract 10 minutes from the current Unix system date and time. I have the datecalc provided here but it is mainly the date and not the time. Please check on how can i subtract 10 minutes from the current time using datecalc or any other shell scripting that will... (2 Replies)
Discussion started by: bantiloe
2 Replies