Can someone help me how to sort column alphabetically leaving blank cells to the end. I have gone through some examples already posted here which is of numeric sorting. I have big csv file which has many columns. I wanted to sort based on user which is my second column. My first column may have some blank cells which i want to come at the end. I tried below awk command using sort but didn't work. Can some please help me.
awk '$2 ~ /[0-9]$/' d.txt | sort -k2g && awk '$2 !~ /[0-9]$/' d.txt
My csv file looks like this
