482 bytes added
, 03:05, 22 March 2015
The sed command can be used for varius things see man page:<br />
[http://unixhelp.ed.ac.uk/CGI/man-cgi?sed sed command man page]
<br />
An example of use of sed to replace characters:<br />
echo <string to replace> | sed <regular expression><br />
Regular expresion:<br />
s -> replace.
g -> all the 'e' are replaced with 'R'. without g only one 'e' is replaced.
# -> delimitation character can be: {|, /, #}.
Example:
<nowiki>echo "esto es un ejemplo" | sed 's#e#R#g'</nowiki>