Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: selecting columns from a tab-separated-values file

by ibm1620 (Scribe)
on Jan 22, 2013 at 03:29 UTC ( #1014547=note: print w/replies, xml ) Need Help??


in reply to Re: selecting columns from a tab-separated-values file
in thread selecting columns from a tab-separated-values file

I'm on CentOS, and (as pointed out), cut won't, er, cut it because I can't reorder the fields. (Also I need to do a little bit of processing.)
  • Comment on Re^2: selecting columns from a tab-separated-values file

Replies are listed 'Best First'.
Re^3: selecting columns from a tab-separated-values file
by mildside (Friar) on Jan 22, 2013 at 03:39 UTC

    Yes sorry, I'd forgotten about the limitation of cut keeping the original field order (it's fast though!).

    Given you need to do a bit of processing as well I think the post by Kenosis should get you well on the way.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014547]
help
Chatterbox?
thezip switches the jolokia powder with Folgers Crystals...
[Michael W]: So i can read ok from this how do i put data back inmy @Variables = ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date);
[Corion]: Michael_W: $Variables[0] = $Map_Request_Date; $Variables[1] = $Map_Due_Date; ...
[choroba]: ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date) = @Variables;?
[thezip]: something like: $Map_Request = <value>; etc. should work
[Corion]: Duh - I read it backwards. I shouldn't code today I guess ;)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-04-27 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (509 votes). Check out past polls.