Search Results

Search: Posts Made By: stumpy1
4,529
Posted By Perderabo
Just to flog a dead horse maybe..find . \( !...
Just to flog a dead horse maybe..find . \( ! -name . -type d -prune \) -o \( -name '????10??_*.dat' -type f -mtime +91 -print \)

Like you I assume that no directories matching the name are...
4,529
Posted By methyl
With acknowledgement to the ideas and discussion...
With acknowledgement to the ideas and discussion in posts #6 and #7.

Possible method: Use "ls -1d" (which does not descend the tree) to generate the file list then examine each file with find to...
4,529
Posted By ctsgnb
The point is : if pathname passed to find is not...
The point is : if pathname passed to find is not a directory, the research will not be recursive, it will just display the matching file as is, but not the others that are in subdirectories (......
4,529
Posted By methyl
The above command syntax is unreliable but may...
The above command syntax is unreliable but may sort of work if the files are in the current directory (because Shell expands the filenames).

The following command would have been safer. The start...
4,529
Posted By ctsgnb
Your first command will not behave in a...
Your first command will not behave in a "reliable" recursive way.

It will find file like ????10??_*.dat ONLY if they ARE in a directory whose name ALSO match ????10??_*.dat...
Showing results 1 to 5 of 5

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