What is wrong with iterating over files directly?
And you can add -i
flat to sed so that the files are edited in place
grep -r -l "//360cdn.win/c.css" | while read f do sed -e '1,9d' -i "${f}" done
¹ OK, you may have problems if your files contain newlines, etc. but then ... if your site contains files with newlines, you probably have other problems ...
source share