Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dup4/bash-script-snippet
Commonly used shell script snippet
https://github.com/dup4/bash-script-snippet
Last synced: 15 days ago
JSON representation
Commonly used shell script snippet
- Host: GitHub
- URL: https://github.com/dup4/bash-script-snippet
- Owner: Dup4
- License: mit
- Created: 2021-08-07T08:41:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T00:56:08.000Z (9 months ago)
- Last Synced: 2024-05-02T05:50:13.378Z (6 months ago)
- Language: Shell
- Size: 139 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash Script Snippet
[![Shellcheck](https://github.com/Dup4/bash-script-snippet/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/Dup4/bash-script-snippet/actions/workflows/shellcheck.yml)Commonly used bash script snippet.
## Usage
```bash
# cdn.jsdelivr.net
bash <(curl -s -L https://cdn.jsdelivr.net/gh/Dup4/bash-script-snippet@latest/${script}.sh) ${your args}# raw.github
bash <(curl -s -L https://raw.githubusercontent.com/Dup4/bash-script-snippet/main/${script}.sh) ${your args}# You can make a function
function bs() {
script_name="${1}"
bash <(curl -s -L https://raw.githubusercontent.com/Dup4/bash-script-snippet/main/${script_name}.sh) "${@:2}"
}
```## Sponsors
## License
[MIT](./LICENSE) License © 2021 - PRESENT [Dup4][dup4]
[dup4]: https://github.com/Dup4