Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1102263]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-24 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found