This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How do I create a loop for this command???
Post Body

Hello,

I have a table with 4 columns. I want it sorted with the 2nd column, then the 3rd column and write it into a new table. I have ~150 tables and I want to loop it to create it for all the tables.

Here is the command I am using:

awk 'print{ $
1, $2, $3}' Abscondita_terminalis_genome_final_protein.all.marker_genes_scores.table | sort | sort -k 2nr,2 | sort
-uk3,3 ; done > Abscondita_terminalis_genome_final.table

I tried looping it using this command:

for i in *.table; do awk 'print{ $1, $2, $3}' $i| sort | sort -k 2nr,2 | sort -uk3,3 ; done > ${i%_protein*}.table

What am I doing wrong and how can I rectify the loop?

Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
588
Link Karma
374
Comment Karma
214
Profile updated: 2 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago