I have many html files named 12345.html, 12346.html, etc. I need to change “style.css” to “style-12345.css” or the appropriate file name. I’m not sure what tool to use, recommendations?
I have many html files named 12345.html, 12346.html, etc. I need to change style.css
Share
This is pretty easily done with a for loop and sed:
The loop runs the inner command with
$iset to each .html filename.sed -imodifies the file in place.basename $i .htmlgets$iwithout the.htmlsuffix (i.e. just the number)