Answer the question
In order to leave comments, you need to log in
How to edit multiple files at once?
Hey!
There are 50 html files. You need to add a line (link) to them in a certain place.
<a href="indexA.html">linkA</a>(сюда нужно вставить <a href="indexB.html">linkB</a>)<a href="indexС.html">linkС</a>
Answer the question
In order to leave comments, you need to log in
for f in $(ls addr_with_files); do
sed -i '/PATTERN/aNEW_LINE' $f;
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question