10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello -
I have a requirement to get the Memory(Xmx) and the activity name using it.
Sample input info :
1502 02:57 /bin/sh /opt/rather/bar/deploy/bar_run.sh
1545 02:57 java -Drather.repository=/opt/rather/bar/deploy/JobSyng_Barol_Count/JobSyng_Barol_Count/../lib -Xms1024M... (3 Replies)
Discussion started by: Varja
3 Replies
2. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
3. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
4. HP-UX
Hi, i want to print timestamp of the command along with output of 'history' command.
Tried this export HISTTIMEFORMAT='%F %T'. But it did not work still getting history output in general way (line number and command). I'm using HP-UX B.11.23 U ia64. Requesting help in this regard. Thanks. (2 Replies)
Discussion started by: sam_bd
2 Replies
5. Shell Programming and Scripting
Hi all,
I want to check whether a file is not updated in last 15 minutes, for this i need to get timestamp of file, (yyyy:mm:dd:hh:mi:ss). I dont have access to STAT command :(.
Please suggest a program or command to do this .
Thanks,
Saravana (1 Reply)
Discussion started by: sam_1210
1 Replies
6. Shell Programming and Scripting
Hi,
I have logfile like this :
Actually the format is date format :
yyyymmddHHMMSS
and i want the log become this format
yyyy-mm-dd HH:MM:SS
for example
2009-07-19 11:46:52
Can somebody help me ?
Thanks in advance (3 Replies)
Discussion started by: justbow
3 Replies
7. Shell Programming and Scripting
Is there a command (like ls -l) to get the file time stamp including seconds? The ls -l gives only the HH:MM, No SS
I don't have a C compiler to call stat()
I don't a command like stat too.
Please help. (8 Replies)
Discussion started by: firdousamir
8 Replies
8. UNIX for Dummies Questions & Answers
Can any one provide answer for the below 3 requirements,
1.
file.txt
grep "name" file.txt > file1.txt
rm -f file.txt
mv file1.txt file.txt
as per abov,
a pattern grepped in file.txt and the content moved to again file.txt
My need is i want the timestamp of file.txt before chaning and... (3 Replies)
Discussion started by: prsam
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am writing a script where i need to list all the files that have a scecific timestamp. I get this time stamp from another file. Is it possible to do this with 'find' command?
Please let me know your valuable inputs.
Thanks
Sunny. (1 Reply)
Discussion started by: sunny_03
1 Replies
10. UNIX for Advanced & Expert Users
Hi,
I'm trying to compare Actual.html with a baseline.html
However, everytime it fails b'coz of the timestamp differences
between the two. So, thought of stripping off the timestamp
from both the *html files before comparing using below sed
command over Solaris Unix platform:... (3 Replies)
Discussion started by: elearn.latha
3 Replies