![]() |
![]() |
EnderUNIX tipsMail to My Friend , Home Page[ Shell Scripting ] "FINND EDIT IN ONE" - Ülkü SAYILAN - (2005-02-01 15:28:18) [3829] Have You Ever found a need to find a file for a particular pattern and then edit the same ?? Here is an easiest way.... At the UNIX prompt, Just type: vi `find . -name "*" -exec grep -l "pattern" {} \; -print` Where "pattern" is the string to be searched. Mail to My Friend , Home Page |
|