file using sort
but when I use
sort -r file.txt
it sorts the numbers by the reverse order
for example
file.txt contains
2
3
1
I want to reverse the order of lines in this way
1
3
2
but when I use
sort -r file.txt
the result is
3
2
1
can anyone help me plz ?
tac maybe..?
why are you using sort to reverse the files
didn't understand tjr
that worked thanks man
[removed]
first result on google gives tac, did you google before asking
yup but I searched about sort
U can even see google logs , lol
Обсуждают сегодня