I want to cut everything with a delimiter ":" The input file is in the following format:
data1:data2 data11:data22 ...
I have a linux command
cat merged.txt | cut -f1 -d ":" > output.txt
On mac terminal it gives an error:
cut: stdin: Illegal byte sequence
what is the correct way to do it on a mac terminal?