10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have dates as follows in a file
All these dates are in sorted order. I need to find out the difference between the dates as follows
2nd row... (6 Replies)
Discussion started by: meetsriharsha
2. Shell Programming and Scripting
Hello all .
I have two arrays.
Whats the synatx of subtracting their values , placing them in variable V1 and then echoeing it ???
Ive tried expr and let ...gives me ./test_code.sh: difference: bad number (3 Replies)
Discussion started by: Junaid Subhani
3. Shell Programming and Scripting
# Retaining Data for Current and Previous Month
lmonth=`expr $month - $a`
if test "$lmonth" = "0"
year=`expr $year - 1`
The output is (3 Replies)
Discussion started by: Abhayman
4. Shell Programming and Scripting
I have a PERL file that help me extract the date and time
of the file.
The format of this is: yyyymmddhhmmss.
20100430070935 (April 30 2010 07:09:35)
How can i subtract the acquired time from system's time..??
The answer... (6 Replies)
Discussion started by: bankimmehta
5. Shell Programming and Scripting
Hallo all i am trying to execute this script ...............
But this is throwing the error......
use of uninitialized value in subtraction in at icd_convert.pl line 156
use of uninitialized value in subtraction in at icd_convert.pl line 157
use of uninitialized value in subtraction in at... (1 Reply)
Discussion started by: suvenduperl
6. Shell Programming and Scripting
i set up a script on my server to do a particular task once files from an external system are ftpd in the format compaq_20100110 (YYDDMM). Interestingly, the source of ftp is sending the files in the format e.g 20100109 i.e. previous date and for some reason this fails.kindly see my script... (2 Replies)
Discussion started by: bigtejus
7. Shell Programming and Scripting
hi i have file 1 as follows:
i have file 2 as follows:
i want file 3 as follows: (4 Replies)
Discussion started by: npatwardhan
I need the date subtraction fuctionality using shell commands.
date1:Wed Apr 5 08:35:21 IST 2006
date2:Tue Apr 4 10:35:44 IST 2006
I need the date subtraction result like " 22 hours 23 seconds".
Please guide me to complete this task.
Can you please help me ASAP.
... (3 Replies)
Discussion started by: uday123
9. UNIX for Dummies Questions & Answers
i realize that my question shows my stupidness, but i need your help!
variable and i need the same, but minus one hour..
what i made:
s_date=time(`date +%m-%d-%Y_%I%p`) - 3600
but i'm getting:
daily_exports.sh: line 20: syntax error near... (4 Replies)
Discussion started by: MarGur
10. Shell Programming and Scripting
I need to figure out the numeric representation of the previous month (in an automated monthly-running script) so that I may append it to a filename. I have tried statements such as variable=`date +%m -1` (and several variations) but with no success. I have also tried simply assigning the value... (3 Replies)
Discussion started by: mharley