0
I have a list of numbers and null values. How can I sort them in a way such that the null values come to the end of the list using sort in GNU coreutils?
Sample Input (input.data)
0.9000
23
1
2
5
-0.9000
-23
-1
-2
-5
When I tried to with sort -g input.data
, the output is as follows.
<NULL>
<NULL>
<NULL>
-23
-5
-2
-1
-0.9000
0.9000
1
2
5
23
Here null values are placed at the top. Is it possible to get the null values to the end of the list?