OBJECTIVE: find all files with the word "start" in /etc/init.d and copy to a Tng directory directory - /home/user/Tng ------------------------------------------ EXAMPLE 1: cp `find /etc/init.d -exec grep -l start {} \; ` /home/user/Tng # grep -l - lists only files ------------------------------------------ EXAMPLE 2: find /etc/init.d -type f -exec grep -q start {} \; -exec cp {} /home/user/Tng \; ------------------------------------------ EXAMPLE 3: find /etc/init.d -exec grep -l start {} \; | xargs -i cp {} /home/user/Tng ------------------------------------------ EXAMPLE 4: find /etc/init.d -type f -exec grep -l start {} \; -exec cp {} /home/user/Tng \; JohnMeister.com Today's Date:
|
![]() SJ - 1962-1991 |
![]() XJ - 1984-2001 |
![]() WJ - 1999-2004 |
![]() KJ - 2002-2007 |
![]() WK - 2005-2010 |
![]() Find the recommended AMSOIL synthetics for your Jeep |
![]() CJ-10A - 1984-1986 |
![]() Jeepsters |
![]() MJ - 1984-1992 |
![]() Willys - 1946-1965 |
![]() Other Jeeps (FC) |