row1 row2 row3
Hello, World, Hello World
World, Hello, World Hello
How do you grab the entire 2 words in bash? I have tried and all I could do is using echo $a tr -s ' ' | cut -d , -f 3 to get both words but each word will be put on its own line like:-
Hello
World
World
Hello
.csvfile, why are you usingecho $a? Provide a clear verifiable input and an expected output