Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Version Control

    csvplait 0.1

    Download button

    No screenshots available
    Downloads: 129  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rick Harris | More programs
    The Apache License 2.0 / FREE
    April 6th, 2012, 10:44 GMT
    ROOT / Programming / Version Control

     Read user reviews (0)  Refer to a friend  Subscribe

    csvplait description

    Interactive Tool for Manipulating CSV files

    csvplait is a Python tool for manipulating CSV files either interactively or via script.

    Usage

    Interactive

    python csvplait.py

     # Read in the CSV
     > read myfile.csv

     # Pretty print the table
     > pp

     # Drop first 2 columns
     > drop 0 1

     # Keep first five columns (labeled 0 to 4)
     > slice 0 4

     # this -> This
     > titleize 0

     # foo -> bar
     > strsub foo bar 0 2

     > write fixedup.csv


    Script

    You can easily create a script by writing out your history to a file:

    > history script.csvplait

    If you want to make your script even more programatic, you can add variables using a bash-like syntax:

     cat script.csvplait
    read $FILENAME
    drop 0
    write $FILENAME.fixedup


    Then, to invoke the script, run csvplait with the script as an argument as well as any environment variables that the script uses:

     python csvplait.py script.csvplait FILENAME=sept.csv


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    CSV manipulator | Comma Separated Values | Python | CSV | Comma

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM