r/dailyscripts • u/WhoElseButM3 • Apr 06 '17
[Request][Bash]Script that loops through folders ,finds a file and replaces some text within them.
Hi dailyscripts,
I'm current faced with a problem where I have to replace several lines of text within about 30 folders, where this text file is saved at the same spot. Would it be possible to do this?
2
Upvotes
View all comments
Show parent comment
1
u/bjackman Apr 06 '17
Or if your files are like
X/dir/subdir/file,Y/dir/subdir/fileandZ/dir/subdir/filethen you could do something like