I have a file which contains several columns separated by special delimiter with multiple chracters like this: <xx>
.
A line will look like this:
firststring<xx>11<xx>thirdstring/<xx>22<xx>00<xx>00<xx><xx><xx><xx>-1<xx>-1<xx>1
Some columns does not contain anything, that's why I have some columns like: <xx><xx>
I need to print the 8th and 9th columns of all rows. How to do this? I tried this command but it does not print anything.
cat myfile.txt | cut -d '<xx>' -f8,9
cut: the delimiter must be a single character
Try 'cut --help' for more information.