GithubHelp home page GithubHelp logo

furinkazan33 / csv_bash Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 23 KB

Powerfull Bash script to handle csv files (view, search, edit, replace, save, etc...)

Shell 100.00%
csv bash hacktoberfest hacktoberfest2020

csv_bash's Introduction

csv_bash

Powerfull Bash script to handle csv files (view, search, edit, replace, save, etc...)

Example

  • Example file :
ID,NAME,AGE,CITY
1,Alex,35,Paris
2,Sam,102,NY
  • Test commands :
bash
. csv_bash.sh my_file.csv

Commands list :
help            Print this help
file            Print working file name
find            Find rows by column value
find_one        Same as above, returns only the first occurence found
limit           Limits the number of results
get             Get the values of the selected column
set             Set the values of the selected columns
new             Create a new line
save            Save the lines in the working file
delete          Delete the lines
headers         Print the headers names
c_add           Add a column
c_delete        Remove a column


find
1,Alex,35,Paris
2,Sam,102,NY

find ID 1 | set AGE 55 | set NAME Bastian | save
1,Bastian,55,Paris

find
1,Bastian,55,Paris
2,Sam,102,NY

csv_bash's People

Contributors

furinkazan33 avatar

Stargazers

Denis Ivan avatar

Watchers

James Cloos avatar  avatar

csv_bash's Issues

User friendly

Add menu for administrative tasks (save options, duplicate file, etc ...)

Fix add_header

Currently, it's impossible to choose where to insert new header, fix this.

Add copy/paste

Copy results into a buffer and then paste it after an ID for example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.