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.
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.
With cut, I believe it is not possible, but you can use awk:
awk -F"string" '{print $1}' file