Tagged Questions
0
votes
2answers
77 views
I want to add the above date to each line on a prstat log file
I have a prstat log, as you all know the date and time is recorded on the top of the log file, I would like to add that date and time to the begging of each line until it gets to a new date, then I ...
1
vote
2answers
1k views
Solaris + display file time stamp [year][month][day]
I have Solaris 10 machine
I need to verify time stamp of some file in my Solaris machine
And to get the following format
[year][month][day]
Example of working command on Linux
ls -l ...
5
votes
2answers
2k views
How to find difference between two timestamps up to milliseconds?
I am new to shell scripting. The heart of my script is to find the difference between two timestamps up to milliseconds. With me I have a file with content of timestamps only as
2012-09-13 ...
4
votes
3answers
2k views
Display time stamp in dd/mm/yyyy_hh:mm:ss:ms in Unix or Linux
I need help to display date and time in desired format in Unix/ Linux. My desired format is:
dd/mm/yyyy hh:mm:ss:ms in Unix or Linux. I got close using the following command:
echo $(date +%x_%r)
...
5
votes
1answer
536 views
Get “date” to understand a timestamp phrase of a different language
My web-scraping scripts have long enjoyed using date -d to read in human-formatted time and date stamps like "March 11, 1999" and convert to any other format I need via the -s parameter.
How might I ...