Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Extracting multiple column from csv file and adding/appending onto new csv file with first columns already existing

by kcott (Archbishop)
on Apr 18, 2014 at 01:06 UTC ( [id://1082694]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -l
    
    ...
    2.2.2.2 4   100 273 274 2   0   0   04:30:05    0   
    3.3.3.3 4   100 273 274 2   0   0   04:30:05    0   
    4.4.4.4 4   100 273 273 2   0   0   04:30:00    0
    
  2. or download this
    $ cat pm_1082609_all.csv
    2.2.2.2,4,100,273,274,2,0,0,04:30:05,0
    3.3.3.3,4,100,273,274,2,0,0,04:30:05,0
    4.4.4.4,4,100,273,273,2,0,0,04:30:00,0
    
  3. or download this
    $ cat pm_1082609_sel.csv
    192.168.10.3,2.2.2.2,04:30:05
    192.168.10.3,3.3.3.3,04:30:05
    192.168.10.3,4.4.4.4,04:30:00
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found