3

Why does this awk command not play as well with find as sed does?

view full story
linux-howto

http://unix.stackexchange.com – I am very much a newbie at Unix/Linux command line stuff, and mostly get to where I'm going by copying, pasting, and modifying code I find on the internet. Just mentioning that in hopes people will keep answers simple and without assuming I know what's going on. I'm creating a Bash shell script to do some file manipulation on some HTML files. Among the many actions I do, I have this sed command which works great: find $DIR -type f -name '*.html' -exec sed -i 's/.*<script type="text\/javascript" charset="utf-8" src="file.js"><\/script>.*/<script type="text\/javascript" charset (HowTos)