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:

Simply Linux: Basics  Full Size Jeep Buyer's Guide Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft
Video Course:
The Art of Linux System Administration, and a
Study Guide for the LPIC-2 Certification Exams.

-- O'Reilly Media author info
FULL SIZE JEEP

Buyer's Guide

SJ Jeeps

"Jeep is America's
only real sports car."
-Enzo Ferrari


Mercedes, VW, and other Diesels
Nikon cameras
general tech info
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it
installed locally in WA at:

- Northland Diesel 360.676.1970 - Bellingham
- Midway Auto 360.668.7111 - Clearview/Snohomish
- Fleet Services 425.355.4440 - Everett