for all files containing a line like:
<class name="blahblahblah" foo="bar" fooz="baz">
I would like to add this line right afterwards.
<cache usage="read-write">
The key text for searching is
<class name=
I have access to a bash shell for this.
Thanks!
Try this one:
and remember it is just one single command. The -i option (–in-place) changes the given file (in place).