10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Please give me more details on the following examples, about "mtime" option.
When I try this, I could not get the expected output, please help.
find . -mtime -1 -print
find . -mtime +1 -print
find . -mtime 1 -print
How do I get the files modified between two dates, say from... (4 Replies)
Discussion started by: Dev_Dev
4 Replies
2. UNIX for Dummies Questions & Answers
Hello, I am using ksh93 (/usr/dt/bin/dtksh) on Solaris and am stuck when trying to use find with the -prune option.
I need to search a directory (supplied in a variable) for files matching a certain pattern, but ignore any sub-directories.
I have tried:
find ${full_path_to_dir_to_search}... (9 Replies)
Discussion started by: gary_w
9 Replies
3. Shell Programming and Scripting
How to do alternation using regular expressions in the 'find' command? Like say you want to find all files that do not match the names specifically "this" or "that" within a directory using regular expressions? (10 Replies)
Discussion started by: stevensw
10 Replies
4. Shell Programming and Scripting
How to find all files for instance that match the permission rwxr*x--- where * is a wildcard which can be optionally asserted but all the others must match? Thanks in advance (7 Replies)
Discussion started by: stevensw
7 Replies
5. Shell Programming and Scripting
Hi There,
Can anybody help me out for searching this regular expression?
xxxxx.yyy.zzzz.From-ABCD.To-XYZ.xxxxxx
I would like the ID1 and ID2 (knowing which one is Id1 and id2)
.From-<ID1>.
and
.To-<ID2>.
Thanks in advance!!
Regards,
Bhaskar (4 Replies)
Discussion started by: bhaskar_m
4 Replies
6. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
7. Shell Programming and Scripting
Hi,
The proble is below:
Assume i have files starting from "process" then date/time then ".log".
ex .
process.20100504092942.log
process.20100503152213.log
process.20100430144217.log
process.20100429153644.log
process.20100428121200.log
process.20100427130746.log... (2 Replies)
Discussion started by: meetvipin
2 Replies
8. Shell Programming and Scripting
Hi,
I want to list files only from the current dir and its child dir (not from child's child dir).
i have the following files,
./ABC/1.log
./ABC/2.log
./ABC/ABC1/A.log
./ABC/ABC1/B.log
./ABC/ABC1/XYZ/A1.log
./ABC/ABC1/XYZ/A2.log
Here i want to list only the log file from current... (1 Reply)
Discussion started by: apsprabhu
1 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I was reading the man pages of find and it says that the -exec option should not be used. I read the following about the recommended option, -execdir:
-execdir command {} +
Like -exec, but the specified command is run from the subdirec‐
tory containing... (1 Reply)
Discussion started by: mojoman
1 Replies
10. Shell Programming and Scripting
I have some files in unix
ls -1
TMH.backend.tar.421E-03.Z
TMH.backend.tar.421E-04.Z
TMH.backend.tar.421E-05.Z
TMH.backend.tar.421E-06.Z
TMH.backend.tar.421E-07.Z
TMH.backend.tar.421E-08.Z
TMH.backend.tar.421E-08.Z.bak20081223164844
TMH.backend.tar.421E-09.Z... (1 Reply)
Discussion started by: on9west
1 Replies