10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have written a bash script for compare two date. One of those is a result of query, and another is current date.
I have a problem with the format, because the first is 09/12/19 18:50:30 but for having this result I have to do
d1DB=$(date -d "$valData" +'%m/%d/%y %T')
and the second... (9 Replies)
Discussion started by: rdie77
2. UNIX for Beginners Questions & Answers
I am trying to add few (say 3 days) to sysdate using -
date -d '+ 3 days' +%y%m%d
and it works as expected.
But how to add few (say 3 days) to a literal date value and how bash treats a literal value as a date. Can we say just like in ORACLE TO_DATE that my given literal date value... (2 Replies)
Discussion started by: pointers1234
3. UNIX for Dummies Questions & Answers
date --date='10:30am + 1 hour' +%H:%M
date --date='10:30pm + 1 hour' +%H:%M produces
I want to do the following:
date --date='$TIME + 1 hour' + %H:%M
14:30 (1 Reply)
Discussion started by: efittery
4. Shell Programming and Scripting
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Discussion started by: leepet01
5. Shell Programming and Scripting
I have string like "1-JUN-11"
and it needs to be converted to "01JUN11" and "1/6/2011":confused::confused::confused:
Thanks (2 Replies)
Discussion started by: ford99
6. Shell Programming and Scripting
I'm trying to substract 1 minute from the current date and take the hour and minute (for filename purpose).
1) If I want hour an minute from current time I can use:
2) To substract 1 minute from current time I can use:
timetmp=$(date --date "$dte -1... (8 Replies)
Discussion started by: Lord Spectre
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
I have standard web server log file. It contains different columns (like IP address, request result code, request type etc) including a date column with the format .
I have developed a log analysis command line utility that displays... (1 Reply)
Discussion started by: TariqYousaf
8. Shell Programming and Scripting
I have this simple script:
echo datediff is$datediff
How do i return the difference in seconds? (6 Replies)
Discussion started by: carp.dk
9. UNIX for Dummies Questions & Answers
in bash is there any other way of limiting the time displayed to HH:MM
(date +"%H:%M") and (date +"%R")?
i want to input time into a database in the form HH:MM
have tried NOW() but this gives me HH:MM:SS
thanks in advance (1 Reply)
Discussion started by: vadharah
10. UNIX for Dummies Questions & Answers
Cound anyone help me on how to compare date in Unix using if function on bash file?
if ###syntax is wrong, could anyone correct it for me
rm -rf /usr/local/src
Thank You... (17 Replies)
Discussion started by: Stanford Co