>Can the UNIX cut command work for a file with multi-bytes delimeter(i.e. >||)? > >Below is what I got: >%cut -f2-32 -d"||" <filename> >%cut: invalid delimiter
I think the command told you the answer. If that delimiter were allowed, it wouldn't have said that it's invalid.
awk doesn't complain if you try to use -F'||', but it only uses the first character. nawk allows this to be a regular expression, so you can use:
nawk -F'\|\|' ...
Perl's split() function also allows arbitrary regular expressions as the delimiter.
Barry Margolin
documented on: 1999.10.15 Fri 16:05:47