Giter VIP home page Giter VIP logo

shtext's Introduction

Shellcheck CI bash_unit CI GH Language GH stars GH tag GH License basher install

shtext

pforret/shtext

Fast text manipulation in bash

🔥 Usage

Program: shtext 0.2.0 by [email protected]
Updated: Apr  3 21:48:10 2022
Description: perform fast text/string operations in bash
Usage: shtext [-h] [-q] [-v] [-f] [-l <log_dir>] [-t <tmp_dir>] <action>
Flags, options and parameters:
    -h|--help        : [flag] show usage [default: off]
    -q|--quiet       : [flag] no output [default: off]
    -v|--verbose     : [flag] output more [default: off]
    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]
    -l|--log_dir <?> : [option] folder for log files   [default: /Users/pforret/log/shtext]
    -t|--tmp_dir <?> : [option] folder for temp files  [default: /tmp/shtext]
    <action>         : [choice] text action to perform  [options: alphanum,ascii,lower,slugify,trim,upper,env,check,update]
                                                                                                             
### TIPS & EXAMPLES
* use shtext alphanum to remove non-alphanumeric chars and spaces
* use shtext ascii to convert all accents/diacritics to ASCII alternative
* use shtext lower to convert to lowercase
* use shtext slugify to create a slug that can be used in a URL
* use shtext trim to trim leading and trailing spaces
* use shtext upper to convert to uppercase
* --- the following are default bashew actions
* use shtext check to check if this script is ready to execute and what values the options/flags are
  shtext check
* use shtext env to generate an example .env file
  shtext env > .env
* use shtext update to update to the latest version
  shtext check
* >>> bash script created with pforret/bashew

⚡️ Examples

< $largefile.txt shtext lower
<<< "Some Éxtra Text" shtext upper

🚀 Installation

with basher

$ basher install pforret/shtext

or with git

$ git clone https://github.com/pforret/shtext.git
$ cd shtext

📝 Acknowledgements

© 2022 Peter Forret

shtext's People

Contributors

pforret avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.