Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Is there any efficient way i can take out a specific column from hundreds of files and put it in one file?

by frozenwithjoy (Priest)
on Sep 28, 2014 at 09:37 UTC ( #1102263=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for FILE in *.tsv; do
        cut -f3 $FILE > $FILE.temp    # use -d option if not tab-delimited
    ...
    
    paste *.temp > final.tsv
    rm *.temp
    
  2. or download this
    for FILE in *.tsv; do
        echo $FILE > $FILE.temp
    ...
    
    paste gene-ids.tsv *.temp > final.tsv
    rm *.temp
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1102263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2021-04-13 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?