Skip to main content

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:


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',' gname feng-rpkm.txt

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

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


To install

$ pip install wcut


$ git clone
$ pip install -e wcut

If you’re not using virtualenv, you’ll probably need elevated permissions to do this.


Let me know if you have any problems with the program. Suggestions and contributions are welcome.

Project details

Download files

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

Files for wcut, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size wcut-0.3.2.tar.gz (16.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page