Short answer: not really
Longer answer: cut
is intended for slicing up lines of text, it does that well. If you need a more complicated behavior, you'll need a text manipulation language. You have rejected the old time answers, so I'll recommend perl
.
Any particular reason you don't want to use sed
or awk
?
dmckee
2008-11-03 14:31:58