10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a directory that has numerous files in it, and there is two which are named "filerec_ddmmyyHH24MMSS" by the time they are created so "filerec_010615012250" was created at 01:22:50 on 1st June 2015.
I need to find the most recently created of those 2 files and get the contents of... (4 Replies)
Discussion started by: finn
4 Replies
2. UNIX for Dummies Questions & Answers
I am trying to fetch the latest modified file from a directory using the command
find . -type f -exec ls -lt \{\} \+ | head | awk '{print $9}'
After the O/P, I get the below mentioned error and the command doesnt terminate at all.
find: ls terminated by signal 13
find: ls terminated by... (2 Replies)
Discussion started by: Sree10
2 Replies
3. Shell Programming and Scripting
Hi
#Testing for file existence
if ; then
echo 'SCHOOL data is available for processing'
else
echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING'
:
i wrote a script, where it begins by checking if file exists or not.
If it exists, it truncates the database... (2 Replies)
Discussion started by: rxg
2 Replies
4. Shell Programming and Scripting
Hi All,
How to find a file modified more than once....
Thanks in advance (2 Replies)
Discussion started by: kmsekhar
2 Replies
5. UNIX for Advanced & Expert Users
Hi all,
We use cron "/usr/rdl/sc/cccron" to execute our jobs.
But sometimes it is being changed. but we are not sure when it is changed.
how could we find when cron is modified.
i checked cron by giving ls -l . but it is showing 2009 year.
ls -l /usr/rdl/sc/cccron
-r-xr-xr-x 1... (0 Replies)
Discussion started by: Divakar
0 Replies
6. Shell Programming and Scripting
Hello all,
I have a file that is growing and growing by the action of any process.
How can I find what process is?
Thank you (2 Replies)
Discussion started by: albertogarcia
2 Replies
7. Shell Programming and Scripting
hi Friends,
In my directory i have some files. I need to find out latest modified file. Please help me.
Sreenu. (2 Replies)
Discussion started by: sreenu80
2 Replies
8. Shell Programming and Scripting
hi gurus,
i would like to know how can i find logs files which were recently modified or updated? :confused:
using this command?
find . -name "*.log" -mtime ??
so what should i put for mtime?
thanks.
wee (9 Replies)
Discussion started by: lweegp
9 Replies
9. UNIX for Dummies Questions & Answers
New to unix .. Is there a simple command or utility that will tell me when the last time a file was opened/used? (3 Replies)
Discussion started by: sbr262
3 Replies
10. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies