3 ms·
Bash has it's own substitution system built in, though I would usually use sed for this task. http://tldp.org/LDP/abs/html/string-manipulation.html http://tldp
by tmzt 9y ago
Bash has it's own substitution system built in, though I would usually use sed for this task.
http://tldp.org/LDP/abs/html/string-manipulation.html http://tldp.org/LDP/abs/html/string-manipulation.html
See the section under Substring Replacement.
- kasabali 9y agoEven M4 macros may work. It would be still more in the shell spirit than ruby gems.