Search Results

Search: Posts Made By: bartleby
1,923
Posted By MadeInGermany
Or generate the pattern for find: findpat="";...
Or generate the pattern for find:
findpat=""; sep=""
for pat in 111 115 116 120 130 153 198
do
findpat="$findpat $sep -name *_$pat.txt"; sep="-o"
done
find . -type f \( $findpat \) -exec cp {}...
1,923
Posted By Don Cragun
No, but you can use pattern matching: find ....
No, but you can use pattern matching:
find . -type f \( -name '*_11[156].txt' -o -name '*_1[23]0.txt' -o -name '*_153.txt' -o -name '*_198.txt \) '-exec cp {} /tmp \;
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy