Conversation
Notices
-
rtsn (rtsn@gnusocial.de)'s status on Thursday, 28-Sep-2017 08:10:10 EDT rtsn Today is not the day but one day I shall master sed. I'm so tired of doing weird web searches and then modifying examples by trial and error until I get it to match the way I want-ish. I use it maybe a couple of times a week so perhaps it's time to sit down and learn it. -
Azidoazide Azide (rachel@vulpine.club)'s status on Thursday, 28-Sep-2017 08:25:22 EDT Azidoazide Azide @rtsn a way we found around that was using perl -pe / -ne expressions!
We've found it to be rare that you not have perl on a machine and it can be much faster to write something like perl -ne 'print if /perlre match/' or perl -pe 's/match/replace/' and can be much more powerful if you're willing to write more perl >_>
-
Azidoazide Azide (rachel@vulpine.club)'s status on Thursday, 28-Sep-2017 08:26:20 EDT Azidoazide Azide @rtsn as a note: this actually improved our life greatly because perl regex is so much nicer to work with compared to sed and much more portable across platforms.
it was always annoying going between a gnu sed and bsd sed and having shit break >_>
-
-