Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

0
How to add column name to each cell using bash????
Post Body

I have a table (as .csv) with rows as gene names and columns as the species they belong to (link to an example here: https://imgur.com/a/lCpc2uy )

I want to add the name of the column to each cell of that particular column. How do I go about doing it?

Example of the data:

Bombyx_mandarina_ Bombyx_mori_
COG0012 COG0012
COG0016 COG0016
COG0018 COG0018
COG0048 COG0048
COG0049
COG0052 COG0052

Example of how I want the data to be:

Bombyx_mandarina_ Bombyx_mori_
Bombyx_mandarina_COG0012 Bombyx_mori_COG0012
Bombyx_mandarina_COG0016 Bombyx_mori_COG0016
Bombyx_mandarina_COG0018 Bombyx_mori_COG0018
Bombyx_mandarina_COG0048 Bombyx_mori_COG0048
Bombyx_mandarina_COG0049
Bombyx_mandarina_COG0052 Bombyx_mori_COG0052

TIA!

Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
596
Link Karma
374
Comment Karma
222
Profile updated: 2 days ago
Posts updated: 10 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
2 years ago