in reply to Problem splitting a string that contains ^I
Examining the split documentation very closely we see that the first argument is in fact a regular expression. So you are trying to match a pipe at the beginning of the line. You need to escape your sequence. This could easily have been found by RTFM, and perhaps by a search BUT, it is something that even experienced people get nicked by. Enjoy.
--
perl -pew "s/\b;([mnst])/'$1/g"
|
|---|