How can I repeat a 'sort' command
Suppose there's a tabular file with 5 columns; 1st column is a title/gene, and 2nd through 5th contains values. I can sort for 2nd coulmn;
sort -k 2 myfile.txt > my_C2_sorted.txt
And for 3rd, 4th and fifth columns. Separately.
How can I do these 4 operations in one command?? And get 4 separate resulting file??
my_C2_sorted.txt
my_C3_sorted.txt
my_C4_sorted.txt
my_C5_sorted.txt
Thanks for your help
• 660 views
•
link
0 answers
No answers yet.
Log in to answer this question.
https://stackoverflow.com/questions/30924294
Hello arraychip!
We believe that this post does not fit the main topic of this site.
not related to bioinformatics. Basic linux question.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!