Re:Safe ways to do things in bash
by themodelplumber on Tuesday May 15, 2018 @12:44AM
(#17071703)
That's really cool, thanks. It seems that whenever I come across an annoying text-processing problem, it's always really hard or too generic-sounding to get search engine help with potential bash solutions. However I'd somehow like to improve in that area.
[ Parent
| on HN ]
Re:Safe ways to do things in bash
by wool_gather on Tuesday May 15, 2018 @08:39AM
(#17073474)
Check out the sed and awk tutorials here: http://www.grymoire.com/Unix/Sed.html
sed in particular is really amazing in what it can do, very simply. (Note, depending on your system, you might want to get GNU sed, for "extended" regex support.)
Those pages do a great job breaking down the basic behavior and explaining pitfalls. They're skim-able, and pretty easily searchable after than, so you can come back and remind yourself of the thing you learned last week.
Re:Safe ways to do things in bash
by themodelplumber on Tuesday May 15, 2018 @10:11AM
(#17074021)
Thanks!