Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Select fields by header keywords.

Project Description

wcut is intended to be very similar to the unix command line utility cut, but with words instead.

For example, suppose you have a file (feng-rpkm.txt) with the contents

geneid,gname,rpkm
666666,feng3,9999

With cut, you could run cut -d',' -f2 feng-rpkm.txt to get the gname column. This is easy if you only have a few fields. For a larger number of fields, it gets annoying to count columns. With wcut, you would run

$ wcut -d',' feng-rpkm.txt gname

Similar to cut, the --complement (or -v) flag will return all the columns that do not match:

$ wcut -d',' -v feng-rpkm.txt gname

If you wanted the rpkm and gname column, but in reverse order, you could run

$ wcut -d',' feng-rpkm.txt rpkm gname

See wcut --help for a full list of options.

Install

wcut can be installed from PyPI using pip.

$ pip install wcut

Issues

Please report any issues on GitHub.

Release History

Release History

This version
History Node

1.0.0

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wcut-1.0.0.tar.gz (16.5 kB) Copy SHA256 Checksum SHA256 Source Mar 28, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting