Difference between revisions of "Find"
Jump to navigation
Jump to search
(Created page with "``` find . -name versions.tf -type f -print0 | xargs -0 sed 's/required_version = \">= 0.13\"/required_version = \">= v1.12.2\"/g' ```") |
|||
Line 1: | Line 1: | ||
``` | ``` | ||
find . -name versions.tf -type f -print0 | xargs -0 sed 's/required_version = \">= 0.13\"/required_version = \">= v1.12.2\"/g' | find . -name versions.tf -type f -print0 | xargs -0 sed 's/required_version = \">= 0.13\"/required_version = \">= v1.12.2\"/g' | ||
+ | |||
+ | find . -name versions.tf -type f -print0 | xargs -0 sed '/.*source.*/i \ \ version = \"~> 1.12.2\"' | ||
+ | |||
+ | find . -name filename.txt -type f -print0 | xargs -0 cp /tmp/newfilecontents.txt | ||
``` | ``` |
Revision as of 22:13, 15 March 2022
find . -name versions.tf -type f -print0 | xargs -0 sed 's/required_version = \">= 0.13\"/required_version = \">= v1.12.2\"/g' find . -name versions.tf -type f -print0 | xargs -0 sed '/.*source.*/i \ \ version = \"~> 1.12.2\"' find . -name filename.txt -type f -print0 | xargs -0 cp /tmp/newfilecontents.txt