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