Home ›
What is the s/findthis/replacewiththis syntax called?What is the s/findthis/replacewiththis syntax called?
Submitted by Benjamin Melançon on January 30, 2011 - 5:07pm
what is the s/find/replace syntax called?
Stefan:
that's called search and replace with regular expressions
ed is the line editor used by vi [which includes this]
sed is just a stream version of ed
s is the substitution command.
Searched words:
sed "stream editor" line editor
vim text replacement
search and change
Comments
Use of the search-replace regex
is covered in a very comprehensive Sed tutorial:
http://www.grymoire.com/Unix/Sed.html
Post new comment