Skip to content

Commit fa406c6

Browse files
committed
Include '' since it's necessary on OSX
1 parent 0b7edb1 commit fa406c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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'"
3+
command: "grep -rl {{old_text}} {{file_path}} | xargs sed -i '' 's/{{old_text}}/{{new_text}}/g'"
44
tags:
55
- file manipulation
66
- sed

0 commit comments

Comments
 (0)