I have this file
1 you
3 me
2 their
4 us
this pipe works fine (it order first column by number, second by letters) is a pipe of another user found here
paste <(awk '{print $1}' file.txt | sort -k1n) <(awk '{print $2}' \
file.txt | gsort -V)
but now use a word with spaces
1 "and me"
3 me
2 their
4 us
The same command produce this
1 me
2 their
3 us
4 "and
How to produce a result like this?
1 and me
2 their
3 us
4
I have tried:
remove number 4
use "and me"
use 'and me'
But give me the incorrect result
cut. So depends, what's the input format?