The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Shell script to search for text in a file and copy file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Shell script to search for text in a file and copy file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
08-03-2007
Shell_Life
Registered User
Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Code:
egrep -l 'abcde1234' * | while read mFile do cp ${mFile} /opt/efx/ian/copied done
Shell_Life
View Public Profile
Find all posts by Shell_Life