Metadata-Version: 1.1
Name: pysed
Version: 0.1.1
Author: dslackw
Author-email: d zlatanidis at gmail com
Maintainer: dslackw
Maintainer-email: d zlatanidis at gmail com
Home-page: https://github.com/dslackw/pysed
Summary: CLI utility that parses and transforms text
Description: .. image:: https://badge.fury.io/py/pysed.png
            :target: http://badge.fury.io/py/pysed
        .. image:: https://pypip.in/d/pysed/badge.png
            :target: https://pypi.python.org/pypi/pysed
        .. image:: https://pypip.in/license/pysed/badge.png
            :target: https://pypi.python.org/pypi/pysed
        
        
        
        Cli utility that parses and transforms text written in Python.
        
        
        [CHANGELOG] : https://github.com/dslackw/pysed/blob/master/CHANGELOG
        
        
        Installation
        ------------
        
        .. code-block:: bash
        
        	$ pip install pysed
        
        	uninstall
        
        	$ pip uninstall pysed
        
        
        
        Command Line Tool Usage
        -----------------------
        
        .. code-block:: bash
        
        	usage: pysed [-h] [-v] [-p] [-e] [-r] [-i]
        
        	Utility that parses and transforms text
        
        	optional arguments:
        	  -h, --help            	show this help message and exit
        	  -v, --version         	print version and exit
        	  -p, --print           	print text
        	  -e, --extract			extract text
        	  -r, --replace, m(n), u, l /	replace text
        	  -i, --insert,  m(n) /		insert text
        
        
        Pysed Examples
        --------------
        
        See changes before modification with options -p --print:
        
        
        Print text file:
        
        (NOTE: Windows users avoid using quotes '')
        
        
        .. code-block:: bash
        
        	$ pysed --print text.txt
        
        	This is my cat,
        	 whose name is Betty.
        	This is my dog,
        	 whose name is Frank.
        	This is my fish,
        	whose name is George.
        	This is my goat,
        	 whose name is Adam.
        
        Extract text:
        
        .. code-block:: bash
        
        	$ pysed pysed --extract 'is' text.txt
        
        	is is is is is is is is is is is is is
        
        Remove new lines:
        
        .. code-block:: bash
        
        	$ pysed -s --print '\n ' ' ' text.txt
        
        	This is my cat, whose name is Betty.
        	This is my dog, whose name is Frank.
        	This is my fish,
        	whose name is George.
        	This is my goat, whose name is Adam.
        
        Redirect results to another file:
        
        .. code-block:: bash
        
        	$ pysed -s --print '\n ' ' ' text.txt > text2.txt
        	$ cat text2.txt
        
        	This is my cat, whose name is Betty.
                This is my dog, whose name is Frank.
                This is my fish,
                whose name is George.
                This is my goat, whose name is Adam.
        
        	$ pysed --extract 'is' text.txt > text3.txt
        	$ pysed -p text3.txt
        
        	is is is is is is is is is is is is is
        
        Replace text:
        
        .. code-block:: bash
        
        	$ pysed -s --print 'This' 'THIS' text.txt
        	
        	THIS is my cat,
        	 whose name is Betty.
        	THIS is my dog,
        	 whose name is Frank.
        	THIS is my fish,
        	whose name is George.
        	THIS is my goat,
        	 whose name is Adam.
        
        Replace max:
        
        .. code-block:: bash
        
        	$ pysed -s --print m2/'This' 'THIS' text.txt
        
                THIS is my cat,
                 whose name is Betty.
                THIS is my dog,
                 whose name is Frank.
                This is my fish,
                whose name is George.
                This is my goat,
                 whose name is Adam.
        
        
        Convert text to uppercase:
        
        .. code-block:: bash
        
        	$ pysed -s --print u/'This' '^' text.txt
        
        	THIS is my cat,
        	 whose name is Betty.
        	THIS is my dog,
        	 whose name is Frank.
        	THIS is my fish,
        	whose name is George.
        	THIS is my goat,
        	 whose name is Adam.
        
        	$ pysed -s --print u/'' '*' text.txt
        	
        	THIS IS MY CAT,
        	 WHOSE NAME IS BETTY.
        	THIS IS MY DOG,
        	 WHOSE NAME IS FRANK.
        	THIS IS MY FISH,
        	WHOSE NAME IS GEORGE.
        	THIS IS MY GOAT,
        	 WHOSE NAME IS ADAM.
        
        Convert text to lowercase:
        
        .. code-block:: bash
        
        	$ pysed -s --print l/'T' ',' text.txt
        
        	this is my cat,
        	 whose name is Betty.
        	this is my dog,
        	 whose name is Frank.
        	this is my fish,
        	whose name is George.
        	this is my goat,
        	 whose name is Adam.
        
        	$ pysed -s --print l/'' '*' text.txt
        
                this is my cat,
                 whose name is betty.
                this is my dog,
                 whose name is frank.
                this is my fish,
                whose name is george.
                this is my goat,
                 whose name is adam	
        
        Insert text:
        
        .. code-block:: bash
        
        	$ pysed -i --print 'whose ' 'sur' text.txt
        
                This is my cat,
                 whose surname is Betty.
                This is my dog,
                 whose surname is Frank.
                This is my fish,
                whose surname is George.
                This is my goat,
                 whose surname is Adam.	
        
        Insert max:
        
        .. code-block:: bash
        
        	$ pysed -i --print m2/'whose ' 'sur' text.txt
        
                This is my cat,
                 whose surname is Betty.
                This is my dog,
                 whose surname is Frank.
                This is my fish,
                whose name is George.
                This is my goat, 
                 whose name is Adam.	
        
        
        More features come....
Keywords: sed, stream, editor, txt, doc, linux, windows, msdos, posix, cli
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: Microsoft
Classifier: Operating System :: Microsoft :: MS-DOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Microsoft :: Windows :: Windows 7
Classifier: Operating System :: Microsoft :: Windows :: Windows Vista
Classifier: Operating System :: Microsoft :: Windows :: Windows XP
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: POSIX :: Other
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Text Editors
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Editors :: Word Processors
Classifier: Topic :: Text Processing
Classifier: Topic :: Utilities


