10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a directory on a Solaris box that has 58 files written to it every 15min. They have a non standard date as part of the file name but always have another name with it. I need to check that directory for files created within the last 15min and then port the results to a log file. There are... (5 Replies)
Discussion started by: jlaigo2
5 Replies
2. Shell Programming and Scripting
Could some let me know the command used to view the commands that I have entered 2 days ago. I am able to perform a command fc -l but its yielding me only last 10 recent events. I need to know the history of the commands that i have entered 2 days ago. Is there anyway that I can get the information... (5 Replies)
Discussion started by: bobby1015
5 Replies
3. Solaris
Dear,
Require a script to check :
If the file under /opt/OV/log directory has recent 5 hours(or user defined value) file generated or not
If generated then cmd to call :
opcmsg a=a o=o msg_grp=OpC msg_text="Log file didn't generated on $time" s=critical (1 Reply)
Discussion started by: mjoshi87
1 Replies
4. Shell Programming and Scripting
Hello all,
How can I get a timestamp with 15 min more than current time ?
I want to get it like YYYYMMDD-HHMMSS
Thank you for your answers :b:
Regards (3 Replies)
Discussion started by: Goldorakk
3 Replies
5. Shell Programming and Scripting
Hi people,
Please some help over here.
I have logs in a directory, in which I need to get the most recent file in order to put it within other command.
The format of the files are
loadfiles20090308094339_41
loadfiles20090308094418_42
loadfiles20090308095457_43... (4 Replies)
Discussion started by: cgkmal
4 Replies
6. Shell Programming and Scripting
I have a set of values like this and sometimes more
source5local_02Dec2008
source5local_01Nov2008
source5local_05Sep2008
I need to retrieve the string with the most recent date
if I cut the date value from each of these strings is there any means to compare them (3 Replies)
Discussion started by: codeman007
3 Replies
7. Shell Programming and Scripting
Hi all,
I'm running on a Sun Solaris machine. I would only want to keep the last 2 most recent files on 1 of my directory.
Below shows my script, but it is incomplete. For the ?? part I do not know how to continue. please help:confused:
DIR=/tmp/abc
OUTPUT=/tmp/output.out... (1 Reply)
Discussion started by: *Jess*
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
New to this forum. Nice forum and very helpful.
Quick question. I'm trying to grep a list of numbers from single digit to 3-digit. For example, I have a pool of numbers that contain two specific numbers, 17 and 177. I would like to grep for 17 but not get 177. When using grep, I also... (4 Replies)
Discussion started by: dejit
4 Replies
9. Shell Programming and Scripting
Hi,
I have files coming in every day with that days timestamp like:
nameyyyymmddhhmmss.ext.
I need the most recent one and so i am using
cat `ls -t name*|head -1 ` > temp
i am sorting the files in the decending order and am copying the most recent one into a temp file.
It works at times... (3 Replies)
Discussion started by: anujairaj
3 Replies
10. Post Here to Contact Site Administrators and Moderators
Hi all,
Have noticed that changes have been made to the forum's main page.
The number of new posts/threads is no longer active/visible.
Is this a tempoary amendment or a permanent one?
Whilst I can not speak for all, I actually refered to the missing line each time I logged on. (2 Replies)
Discussion started by: Cameron
2 Replies