10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Gurus,
I want to check if file got created in less than 10 hrs in .ksh.
Here is my requirement
In $var5 : I'm storing file name
In $var4 I have stored : select to_char(sysdate,'YYYYMMDDHH:MM:SS') from dual;
If that file date time is less than 10 hrs, then I need to check
if less... (1 Reply)
Discussion started by: thummi9090
1 Replies
2. Shell Programming and Scripting
I know you can supply the find command with an option to find files > than N days old. Is there some way to do this to find files that are > than N hours old.
I want to do somthing like this:
find . -mtime + (now - 2hrs) -print
If not is there a way to do this with sed or awk or some... (5 Replies)
Discussion started by: BeefStu
5 Replies
3. Shell Programming and Scripting
I have to retain only 1 day files in my system an I have to delete all the other files which are older than 24 hrs. Please let me know the option I have to give in the find -mtime command. (3 Replies)
Discussion started by: rajesh8s
3 Replies
4. Shell Programming and Scripting
Hi,
I need a script that can search a word "Error" in last 10 Hrs generated logs in /log/App1 and /log/App2 folder..
Note these directories have massive log files ...actually our application generate 100 Log files of size 2MB in just a min so script must be fast enough to cater this I... (9 Replies)
Discussion started by: Mujtaba khan
9 Replies
5. UNIX for Dummies Questions & Answers
I wanted to know what command should I use to see the files created in last 2 hours in a given directory.
I know to see the files changed in last one day I can use this:
find /admin//dump -type f -ctime -1 -print | xargs ls -lt|pg
However I am not getting what should I use if I wanted tol... (4 Replies)
Discussion started by: rsonakiya
4 Replies
6. Shell Programming and Scripting
Hi,
Can someone help me with this script ....
I need a ksh script, which will search for a specific file in a directory, if file not found sleep for 10 mins and search again, if still not found sleep again for 10 mins and so on .... it should search for that file for 3 hours and if that file... (5 Replies)
Discussion started by: santosham
5 Replies
7. Shell Programming and Scripting
Hi
I am doing a process of converting all the values of key column into a row, for eg
Key col1 col2
1 1 1
1 2 1
1 1 3
1 3 1
2 ... (2 Replies)
Discussion started by: nvuradi
2 Replies
8. SuSE
I Have a SUSE Linux Enterprise server 9.0. When I start the server , using date command I daily find that the time it is showing is 00.00 Hrs. It shows the date correctly. Every day I have to set the time using the date command.
I am facing this proble from last 3 weeks but couldn't find a... (4 Replies)
Discussion started by: V.V.KUMAR
4 Replies
9. Shell Programming and Scripting
Hi gurus
I am currently using the below mentioned grep to find timestamp of last generated log file.
touch -t $time_search dummy
ecust_time_stamp=$(find . -name 'eCustomerCME*' -newer dummy -type f -exec ls -ltr {} \; | tail -1 | awk ' { print $6,$7,$8 } ')
I calculate... (3 Replies)
Discussion started by: ragha81
3 Replies
10. UNIX for Dummies Questions & Answers
Is there a way of setting the TZ for New Zealand. I do not mind if it is only for the logged in session.
It makes it hard to understand when files or CRON jobs have run when the time is set to GMT0.
Any help will be appreciated.
;) (1 Reply)
Discussion started by: jagannatha
1 Replies