How to search Unix files pattern recursively (subdirectory) with file size

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
find . -name *stg -exec ls -ltr {} \;

$ find . -name *stg -exec ls -ltr {} \;
-rw-r-----   1 oracle   dba         4440 Mar 10 16:30 ./stage/stg_212977.stg
-rw-r-----   1 oracle   dba         3826 May  5 17:05 ./stage/stg_316906.stg
-rw-r-----   1 oracle   dba         4440 May  5 19:53 ./stage/stg_332970.stg



How to search and remove for particular files pattern recursively (including subdirectory)
find . -name *stg -exec rm -f {} \;


_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer