I have a huge file that needs to be sorted in Linux, for example:
sort -k1,1 -k2,2n /dir/fileA.sam > /dir/fileA_sorted.sam Because I ran out of disk space, is there a way to delete the original file (i.e. fileA.sam) after sorting it and output fileA_sorted.sam? Thanks!
rm). Of course you can output the sorted file (to the screen, to a printer, to whatever).