Extracting columns from text file using Perl: similar to Unix cut

Posted by atricapilla on Stack Overflow See other posts from Stack Overflow or by atricapilla
Published on 2010-03-23T12:20:07Z Indexed on 2010/03/23 12:23 UTC
Read the original article Hit count: 441

Filed under:
|
|
|

Hi,

I'm using Windows and I would like to do extract certain columns from text file using Perl, Python, batch etc. one liner.

On Unix I could do this:

cut -d " " -f 1-3 <my file>

How can I do this on Windows?

© Stack Overflow or respective owner

Related posts about perl

Related posts about python