LINUX - how to use a string as a delimiter in the cut command [closed]

0

How do I use a string in the cut command? already tried with: cut -d"String" -f1 but it says that it is only possible with a single character.

    
asked by anonymous 05.10.2018 / 13:20

1 answer

2

With cut, I believe it is not possible, but you can use awk:

awk -F"string" '{print $1}' file
    
05.10.2018 / 14:01