[Chicago-talk] Autosplit on windows

Jay Strauss me at heyjay.com
Wed Apr 6 21:28:02 PDT 2011


Hi,

I just thought I'd post this for the next person who needs it.  I had a hard
time getting the escaping correct when running on strawberry perl under
windows.

perl -na -F/"\|"/ -e "print $#F,\"\n\" " some_data_file.txt

read a file, autosplit on '|', print the count of fields

Jay

keywords: autosplit windows M$ MSFT strawberry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20110406/e5e3313f/attachment.html>


More information about the Chicago-talk mailing list