Skip to content

Commit 37bc41b

Browse files
authored
Merge pull request #66 from warpdotdev/zheng/fix-sed-command
Include '' to sed command since it's necessary on OSX
2 parents 0b7edb1 + fa406c6 commit 37bc41b

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)