2 ms·
As far as them showing up, at least in VIM they show as a caret followed by 64+code (so ^^ and ^_ for RS and US), and can be entered by ctrl v ctrl ^ and ctrl v
by derekp7 9y ago
As far as them showing up, at least in VIM they show as a caret followed by 64+code (so ^^ and ^_ for RS and US), and can be entered by ctrl v ctrl ^ and ctrl v ctrl _. Kind of awkward to enter though. Of course, like you said, this is domain-specific knowledge.
I've converted much of my workflow to use these (I have a script that un-escapes data from mysql, and replaces tabs/newlines with RS and US). Most filter commands can have an arbitrary field delimiter specified, but not all of them can have something other than newline or null for a line terminator. For these cases I've had to maintain local copies of the commands (sed, sort, join).