This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
cuts
====

About
-----

Utility for cutting out portions of each line of a file, and rearranging
the remaining contents as desired.

Based on the Unix utility ‘cut.’ The goal is to enhance the capabilities
of cut to allow rearranging, negative indexing, flexible delimiting
output, and proper handling of multiple instances of input delimiters.

Installation
------------

::

pip install cuts

Usage
-----

usage: cuts [-h] [-b BYTES] [-c CHARS] [-f FIELDS] [-d DELIMITER] [-e]
[-s][-S SEPARATOR] [file [file …]]

Remove and/or rearrange sections from each line of a file(s).

positional arguments:

file File(s) to cut

optional arguments:

-h, –help show this help message and exit

-b BYTES, –bytes BYTES Bytes to select

-c CHARS, –chars CHARS Character to select

-f FIELDS, –fields FIELDS Fields to select

-d DELIMITER, –delimiter DELIMITER Sets field delimiter(default is TAB)

-e, –regex Enable regular expressions to be used as input delimiter

-s, –skip Skip lines that do not contain input delimiter.

-S SEPARATOR, –separator SEPARATOR Sets field separator for output.

List Specification
------------------

Each of the arguments -b,-c, and -f expect a list of positions as an
argument. This list should be comma delimited, and allows for negative
indexing.

Additionally, the list may include ascii characters. If included, these
characters will override the output delimiter with that character.

Ranges are permitted in the list, using a colon as below

N:M All input positions from N to M

N: All input positions from N to end of line

:M All input positions from beginning of line to M

Position counting starts from one.

Files
-----

Each line of an arbitrary number of files may be optionally cut by
naming them each after all other parameters are set. The file names
should be separated by a space.

If no files are specified, or a ‘-’ is used, STDIN is used.

Bytes
-----

(-b,–bytes)=LIST

Cuts input by byte, as specified by LIST.

Characters
----------

Cuts input by character, as specified by LIST.

Fields
------

(-f,–fields)=LIST

Cuts input into fields separated by the input delimiter.

Example:

::

Input:
echo "this is just a test" | cuts -f 1,X,3:5 -d " " -S "."
Output:
thisXjust.a.test

Delimiter
---------

(-d,–delimiter)=DELIM

Specifies input delimiter for fields option. Default is tab character
(‘:raw-latex:`\t`’).

If the option -e is set, the delimiter will accept regular expressions,
allowing for multiple delimiters.

Separator
---------

(-S,–separator)=SEPARATOR

Specifies output delimiter. Will be overridden by ascii character in
position list.

See also
--------

cut(1)

Development notes
-----------------

Project is still under development. Any questions or comments, please
email jon@jpweiser.com
Release History

Release History

0.37.7

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.37.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.37.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.37.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cuts-0.37.7.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Jul 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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