10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Legends,
i need to get previous day using date command.
Can you please help.
sdosanjh:/home> date +%m%d%y
011514
i tried -d '-1 day' but it is not working (5 Replies)
Discussion started by: sdosanjh
5 Replies
2. Shell Programming and Scripting
Hi all,
I've searched through the forum and can't find a thread specific to this question:
I have a CSV file with a date column, the dates I'm given from the original file look like: "m/dd/yyyy" (UNLESS it's a double digit month, like October, where it would then show up as "mm/dd/yyyy"). Is... (8 Replies)
Discussion started by: mtucker6784
8 Replies
3. HP-UX
Hi,
I have one hp-ux sytem date display problem when viewed remotely
hostA 21: date
Fri Jul 5 11:18:51 SST 2013
hostA 22: remsh hostB -l username -n date
2013年07月05日 11時32分27秒
But on actual system it display correctly:confused:
hostB 21: date
Fri Jul 5 11:40:33 SST 2013 (4 Replies)
Discussion started by: jorendain
4 Replies
4. UNIX for Dummies Questions & Answers
Hi Gurus,
I would like to get the date for the previous year based on the date I specify.
For e.g. If I input today's date (i.e. 20130422) I need to get 20120422.
We don't have GNU and use K Shell. Any help is highly appreciated.
Thanks
Shash (4 Replies)
Discussion started by: shash
4 Replies
5. Shell Programming and Scripting
Below is my Scenario.
I wrote one script to search the specific log files for Yesterdays date and gives the result.
I need a script like
1. Once I run the Script, The script should ask me which date I want to search.
2. Once i enter the date, That script should search the log files for... (3 Replies)
Discussion started by: Padmanabhan
3 Replies
6. Shell Programming and Scripting
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
7. Shell Programming and Scripting
i have a file with below contents
Mg_Message_count,1-Aug-12,46
Mg_Message_count,2-Aug-12,48
Mg_Message_count,3-Aug-12,48
Mg_Message_count,4-Aug-12,48
Mg_Message_count,5-Aug-12,48
Mg_Message_count,6-Aug-12,48
Mg_Message_count,7-Aug-12,42
Mg_Message_count,20-Aug-12,24... (10 Replies)
Discussion started by: rabindratech
10 Replies
8. Shell Programming and Scripting
Hi,
I need subtract two date values (which are in day of the year format) and the output would give the remaining days. using the command date +"%j" i would get today's 'day of the year' i.e.,
> date +"%j"
256
Next, i need to take input of a previous date in the format 09/05/2012 and then... (4 Replies)
Discussion started by: sam_bd
4 Replies
9. UNIX for Dummies Questions & Answers
Perderabo,
I copied the mimetool script and am running it on an HP-UX release 11i, and in most cases it works like a charm. But I ran into the following issue;
I extracted data from an Oracle database and formatted the results as a *.csv file so that the user can view it as an excel... (4 Replies)
Discussion started by: perssonc
4 Replies
10. UNIX for Dummies Questions & Answers
Hi
I tried this date script https://www.unix.com/showthread.php?p=16559#post16559 but I am probably doing something wrong.
If i type:
datecalc -a 2006 05 01 + 5
I get following error message:
datecalc: Syntax error at line 207
If i look at line 207 i dont get it! But thats not surprising. ... (2 Replies)
Discussion started by: swissman24
2 Replies