3 ms·
This is where perl really shines for me. Regular expressions are front and center, making it so frictionless to slice and dice text. My bash knowledge is so stu
by ryl00 6y ago
This is where perl really shines for me. Regular expressions are front and center, making it so frictionless to slice and dice text. My bash knowledge is so stunted because I bail to perl as soon as the going gets tough. :)
- dredmorbius 6y agoBash's regex library is called "sed".
- hnlmorg 6y ago`sed` differs from different implementations (eg GNU vs BSD). Bash does actually have a fair amount of regex support built in too though it's not as well talked about.
- dredmorbius 6y agoBoth points taken. Mine remains: that shell affords capabilities via utilities. Awk (again, with numerous implementations) also offers regex capabilities, some not offerred by sed, and missing a few. When writing cross-platform scripting, adhering to common standards rises in importance. This is possible, if occasionally limiting.