We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b7edb1 commit fa406c6Copy full SHA for fa406c6
1 file changed
specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml
@@ -1,6 +1,6 @@
1
---
2
name: Recursively find and replace within a directory
3
-command: "grep -rl {{old_text}} {{file_path}} | xargs sed -i 's/{{old_text}}/{{new_text}}/g'"
+command: "grep -rl {{old_text}} {{file_path}} | xargs sed -i '' 's/{{old_text}}/{{new_text}}/g'"
4
tags:
5
- file manipulation
6
- sed
0 commit comments