Thread
:
script to copy files containing string
View Single Post
Jun 10th, 2005, 8:50 AM
#
2
skuinders
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power:
4
I'm on windows at work so I did this without being able to check it...
(
Toggle Plain Text
)
cp `grep -f *.txt -e stringpattern -l` the_dir
cp `grep -f *.txt -e stringpattern -l` the_dir
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell
http://web.bryant.edu/~srk2
skuinders
View Public Profile
Visit skuinders's homepage!
Find More Posts by skuinders