Search Results

Search: Posts Made By: hollywood
26,418
Posted By hollywood
-name *log[12]* -iname for an insensitive...
-name *log[12]*

-iname for an insensitive search
26,418
Posted By hollywood
Negative. I do this all the time. Doing an ls...
Negative. I do this all the time. Doing an ls reads a directory not the file contents. A directory is a table of string names and inode values. A long listing reads the inode information, not the...
26,418
Posted By hollywood
When I do a man find on my CentOS system I find...
When I do a man find on my CentOS system I find there is a -maxdepth argument.

so adding the following to the find command will do the current directory.

-maxdepth 1

This yields files in the...
26,418
Posted By hollywood
&& is the LOGICAL AND operator. So find...
&& is the LOGICAL AND operator.

So find would come after the &&.

The cd before.

cd /mydir && find . -type f -atime +60 -exec ls -lu {}\;

The above will produce a long list of files...
26,418
Posted By hollywood
Did cd && thing in 1986. I will never forget...
Did cd && thing in 1986. I will never forget wiping out the wrong files. Fortunately I had a complete backup. Never made this mistake again.
26,418
Posted By hollywood
find . -type f -mtime +60 -exec rm -f {} \; ...
find . -type f -mtime +60 -exec rm -f {} \;

If you are not really worried about month and date formatting. Maybe you are.

That said, perhaps the following is more appropriate.

find . -type...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy