hi
I am trying to manipulate files that contain some of these words
tau1, tau2, tau3, tau4, tau5 or tau6
I wrote this one
for fl in `find -type f -regex '.*tau\(1\|2\|3\|4\|5\|6\).*' -print`; do
echo $fl;
done
and tried this
for fl in `find -regextype posix-egrep -type f -regex '.*tau(1|2|3|4|5|6).*' -print`; do
echo $fl;
done
But both command manipulates files with tau10 as well. How to avoid this?
thanks
p.
I am trying to manipulate files that contain some of these words
tau1, tau2, tau3, tau4, tau5 or tau6
I wrote this one
for fl in `find -type f -regex '.*tau\(1\|2\|3\|4\|5\|6\).*' -print`; do
echo $fl;
done
and tried this
for fl in `find -regextype posix-egrep -type f -regex '.*tau(1|2|3|4|5|6).*' -print`; do
echo $fl;
done
But both command manipulates files with tau10 as well. How to avoid this?
thanks
p.