paperbenni / bash

bash scripts that emulate python-like import features

Home Page:https://paperbenni.github.io/bash/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paperbenni/bash

A collection of neat little bash functions. Meant for use in Scripting

Usage in scripts

Instructions

Add the following line to the top of your bash script to get started using my functions

source <(curl -Ls https://git.io/JerLG)

Then do the following to import functions into your script pb supports the following three types of syntax

#here are a few examples
pb unpack # just the name if there are no other scripts in the category
pb rclone/login.sh # full name with file extension
pb spigot/op # full name without file extension
pb rclone.login # full name without file extension and dot as seperator

#lets try them out
unpack
  usage: unpack file
  automatically detects the archive type and extracts it

Demo

Codacy Badge asciicast

These my personal scripts.

I hold no responsibility for them being difficult to use or causing the end of the world

If you want to contribute, feel free to send pull requests.

debugger:

source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/setup.sh)

Alternative sourcing oneliner

{ command -v papertest && papertest; } || source <(curl -Ls https://git.io/JerLG)

About

bash scripts that emulate python-like import features

https://paperbenni.github.io/bash/

License:GNU General Public License v2.0


Languages

Language:Shell 99.8%Language:HTML 0.2%