9 More Discussions You Might Find Interesting
1. HP-UX
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
20 Replies
2. Shell Programming and Scripting
SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise
Hi,
In a folder, there are files. I have a script which reads the current date and subtract the modification date of each file.
How do I achieve this?
Regards,
Joe (2 Replies)
Discussion started by: roshanbi
2 Replies
3. Shell Programming and Scripting
Hi all,
I have been researching to obtain SSL certification expiry for most of our webistes. For some cases, some hosts where not directly accessible so i finally got a solution working with curl using my proxy. This lists the expiry date which i'm finally looking for.
# curl --proxy... (4 Replies)
Discussion started by: nms
4 Replies
4. Solaris
Hi,
I am running on Solaris 11.3.
I have a timestamp in this format date +%Y%m%d%H%M .
I found some forums saying to use date --d however that didn't work.
Is there a way how I can subtract days from timestamp in that format?
Thanks (12 Replies)
Discussion started by: nms
12 Replies
5. Shell Programming and Scripting
Hi,
Can you please let me know code for the below (in korn shell)
a) Subtract month(s) from given date
b) Subtract day(s) from give date
c) Subtract month(s) from given timestamp
d) Subtract day(s) from give timestamp (1 Reply)
Discussion started by: tostay2003
1 Replies
6. Shell Programming and Scripting
Hi,
I have one .csv file. I have 2 date columns present in file, column 2 and column 3.
I need to calculate how many days exist between 2 dates.
I am trying to subtract date column 2 from date column 3.
Eg: my file look likes
s.no, Start_date,End_Date
1, 7/29/2012,10/27/2012
2,... (9 Replies)
Discussion started by: Dimple
9 Replies
7. UNIX for Advanced & Expert Users
good afternoon,
can someone help me, I need to make a script where n subtract days to a date.
I am using AIX 5.3.
Greetings. (4 Replies)
Discussion started by: systemoper
4 Replies
8. Shell Programming and Scripting
Ex: Script 1 has pID=333. I want to take pID to Script 2 so I can retrive 333.
How can I do this? (3 Replies)
Discussion started by: Yakuzan
3 Replies
9. Shell Programming and Scripting
dear there,
this kept me awake last night, the variable ${TO} in the following script doesn't seem to hold its value.
I have a file ./filelist, which lists all files of interests. I group them by keywords in the filename, and would like to count total number of lines in each group. ... (7 Replies)
Discussion started by: patiobarbecue
7 Replies