Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paperbenni/bash
bash scripts that emulate python-like import features
https://github.com/paperbenni/bash
Last synced: 17 days ago
JSON representation
bash scripts that emulate python-like import features
- Host: GitHub
- URL: https://github.com/paperbenni/bash
- Owner: paperbenni
- License: gpl-2.0
- Created: 2018-07-15T21:35:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T17:09:23.000Z (about 1 year ago)
- Last Synced: 2024-10-12T00:28:59.465Z (about 1 month ago)
- Language: Shell
- Homepage: https://paperbenni.github.io/bash/
- Size: 63.1 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```sh
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```sh
#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](https://api.codacy.com/project/badge/Grade/2edb0989a07f40919cd0472a6a91fdaf)](https://app.codacy.com/manual/paperbenni/bash?utm_source=github.com&utm_medium=referral&utm_content=paperbenni/bash&utm_campaign=Badge_Grade_Settings)
[![asciicast](https://asciinema.org/a/uLkrlqR36UwAe5MJIXtGjH6uV.svg)](https://asciinema.org/a/uLkrlqR36UwAe5MJIXtGjH6uV)These my personal scripts.
I hold no responsibility for them being difficult to
use or causing the end of the worldIf you want to contribute, feel free to send pull requests.
debugger:
```sh
source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/setup.sh)
```### Alternative sourcing oneliner
```sh
{ command -v papertest && papertest; } || source <(curl -Ls https://git.io/JerLG)
```