edit multiple files in several directories with the same text in Linux
Posted on 2016-08-29
I have 6 files that are almost identical to each other but they are in different folders
so lets say I have
all files have a line that reads: "Depricated funcstions="
Currently, this line is blank after the "=" in all the files.
assuming I need to enter the same text to all files (For example I want all files to be edited so that the lines now reads:
"Depricated dunctions=foo, bar"
but the row number in which the line appears is different for each file.
is there a way to achieve that for all file.conf files in /home/functions/verXX/file.conf?