Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

BSD sed: extra characters at the end of d command

OS X requires the extension to be explicitly specified. 
The workaround is to set an empty string:

$ sed -i '' 's/megatron/pony/g' /path/to/file.txt


Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #BSD #extra #characters #command
ADD COMMENT
Topic
Name
9+7 =