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

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 {} \;


DBA Tips Data Pump Reference

0 comments:

Post a Comment

 

dba topics. Copyright 2011-16 All Rights Reserved | Site Map | Contact | Disclaimer | Google