for i *.txt; do # for each txt file
remlines $i > tmp$$ # remove the required lines
cp tmp$$ $i # copy the output back over the original
done
rm tmp$$ # tidy up
You'll want to omit the 'cp' command until you're confident that its all working properly
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.