test1="one two three four five"
echo $test1 | cut -d $'\t' -f2
I have a string which separated by TAB
, and I want to get the second word by cut
command.
I've found the question How to split a string in bash delimited by tab. But the solution is not used with cut
.