|
Use sed to edit string in multiple files not contained in current directory
Hello,
I have the following problem:
CASE_FOLDER
----------->0_FOLDER
-------------------->ForceX ForceY ForceZ
----------->1_FOLDER
----------->2_FOLDER
---more folders---
The 3 Force* files contained in all folders (1,2,3..._FOLDER) have the following string skin:012 which I would like to change to skin_abc.
My plan was to use sed to edit the files in the following way:
sed 's/skin:.../skin_abc/g' $(find . -name Force*)
This seems to do what I want except that the output prints to the terminal. How can the substitution be incorporated in the files themselves rather simply the output to the screen?
Cheers,
Dylan
|