0
How do I use a string in the cut? command:
cut -d"String" -f1
but he says it is only possible with a single character.
0
How do I use a string in the cut? command:
cut -d"String" -f1
but he says it is only possible with a single character.
2
With cut, I believe it is not possible, but you can use the awk:
awk -F"string" '{print $1}' file
Perfect! I’ll research more on that awk.
Browser other questions tagged linux bash shell-script
You are not signed in. Login or sign up in order to post.
What
man cut
says about it? Why do you need a word as delimiter?– Woss