hi
Could someone help me on this?
In each PINK* directory I have 'pink' fajl with some content and I wanna remove all lines containing word 'tau1' or 'tau2' (in all 'pink' fajls in all directories of course)
I wrote this command
find PINK* -type f -name "pink" -exec sed -e '/tau1/d' -e '/tau2/d' > pink1 '{}' \;
Now I have a single 'pink1' fajl with everything inside (at least lines with 'tau1' and 'tau2' are properly removed). But I would like to have 'pink1' for each directory.
how to do this?
thanks
oliver
Could someone help me on this?
In each PINK* directory I have 'pink' fajl with some content and I wanna remove all lines containing word 'tau1' or 'tau2' (in all 'pink' fajls in all directories of course)
I wrote this command
find PINK* -type f -name "pink" -exec sed -e '/tau1/d' -e '/tau2/d' > pink1 '{}' \;
Now I have a single 'pink1' fajl with everything inside (at least lines with 'tau1' and 'tau2' are properly removed). But I would like to have 'pink1' for each directory.
how to do this?
thanks
oliver