10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I need to write a shell script where I need to check whether log file is generated in last 1 hour or not. But I am getting below error in using mmin or cmin parameter with find command:
find: bad option -mmin
find: bad option -cmin
So my concern is that any alternative for mmin option... (5 Replies)
Discussion started by: Ankit Srivastav
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Please tell me what the below command wil do, according to my understanding it finds files in the current and sub directories whose modification time is 5 hrs and it dont zip the already zipped files who's size is more than 4K.
Am I Correct?
find . -type f -mmin +300 ! -name... (1 Reply)
Discussion started by: nag_sathi
1 Replies
3. Shell Programming and Scripting
I'm new to this and I have done a lot of research and am 99% done with my ksh script BUT I need help with. The script looks at Journal files and reports back on any that have not been updated for 15 min. Everything works but I wanted more detail (added -ls) and now I'm getting dups.
Original code:... (2 Replies)
Discussion started by: blackopz
2 Replies
4. Shell Programming and Scripting
Hi,
I want to parameterise the argument for 'mmin' to find out files created/edited 'n' minutes ago.
For this i have written something as simple as the following:
n=10
m=-1
c=expr $n \* $m #value comes to -10 when echoed
find -mmin -10 #works
find -mmin $c #doesnt work ... (5 Replies)
Discussion started by: SheetalN
5 Replies
5. Shell Programming and Scripting
We have created a unix shell script to read a datafiles from specific input directory in Unix.
Users will be copying datafiles to the same input unix directoty.
During Testing we observed Unix Shell Script also read the incomplete datafiles which is still copying by the users.
As per requirement... (1 Reply)
Discussion started by: Kumari Reshma
1 Replies
6. Shell Programming and Scripting
I need to compare the time a file was last modified against current time and conditionally proceed.
At the command prompt I can do:
find MYFILE -mmin +1140
and it lists the file. But I need to test, and if true do something
I’ve tried things like:
if ; then
if ; then
etc. ... (2 Replies)
Discussion started by: tlavoie
2 Replies
7. Solaris
hi
find command is not working with -mmin in Solaris Os.
Do we hav any alternative to find the modified file in any specified time span ( suppose in last 1- 2 hours)
Thanks (2 Replies)
Discussion started by: Prat007
2 Replies
8. UNIX for Dummies Questions & Answers
hi,
Function 'mmin' is not in my unix, what is the other alternative to find files created/modified in last 10 minutes.
Unix Command:
find . -min -10
find: bad option -min
find: path-list predicate-list
Thank you (1 Reply)
Discussion started by: Mohee
1 Replies
9. HP-UX
Hi Everyone,
I would like to know how to find a file which was created in the period of 20+ hours, in most common unix OS, the parameter -mmin is not supported (i.e, HP-UX, Solaris, LInux, AIX)
Could you help on this ?? (3 Replies)
Discussion started by: jmbeltran
3 Replies
10. UNIX for Dummies Questions & Answers
I wanna show all files like...one minute old, one hour old, five hours old and so on...
in my OS (HP-UX) there's only the command ..
find -name "..." -mtime -n
but this is only for days, there isn't something like -mmin -n ...just don't know what to do. also the newer than option isn't... (3 Replies)
Discussion started by: svennie
3 Replies