All Projects → wklken → Bash Utils

wklken / Bash Utils

utils for shell

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Bash Utils

Torchfunc
PyTorch functions and utilities to make your life easier
Stars: ✭ 177 (+205.17%)
Mutual labels:  functions, utils
Touch Bar Istats
Show CPU/GPU/MEM temperature on Touch Bar with BetterTouchTool!
Stars: ✭ 141 (+143.1%)
Mutual labels:  utils, template
Miraigo Template
A template for MiraiGo
Stars: ✭ 47 (-18.97%)
Mutual labels:  template
Mailchimp Boilerplate
MailChimp repeatable blocks boilerplate
Stars: ✭ 56 (-3.45%)
Mutual labels:  template
Rambda
Faster and smaller alternative to Ramda
Stars: ✭ 1,066 (+1737.93%)
Mutual labels:  utils
Sassyfication
💅Library with sass mixins to speed up your css workflow.
Stars: ✭ 51 (-12.07%)
Mutual labels:  utils
Donations
🙌 Responsive donations template for your projects.
Stars: ✭ 54 (-6.9%)
Mutual labels:  template
Oa Apidoc Template
Live Demo
Stars: ✭ 47 (-18.97%)
Mutual labels:  template
Liquor
Liquor is a safe sandboxing compiling template language for Ruby
Stars: ✭ 57 (-1.72%)
Mutual labels:  template
Input Mask Android
User input masking library repo.
Stars: ✭ 1,060 (+1727.59%)
Mutual labels:  template
Essential Vanilla Javascript Functions
Essential Vanilla JavaScript Functions
Stars: ✭ 56 (-3.45%)
Mutual labels:  functions
Jsdoc Baseline
An experimental, extensible template for JSDoc.
Stars: ✭ 51 (-12.07%)
Mutual labels:  template
Pgo
Go library for PHP community with convenient functions
Stars: ✭ 51 (-12.07%)
Mutual labels:  functions
Wz Wireframe Kit
📏 A kit to draw wireframes and note interaction details.
Stars: ✭ 54 (-6.9%)
Mutual labels:  template
Wp Functions
A compilation of function snippets for WordPress developers who create their own themes.
Stars: ✭ 1,055 (+1718.97%)
Mutual labels:  functions
Wedding Website
Our Wedding Website 👫
Stars: ✭ 1,090 (+1779.31%)
Mutual labels:  template
Raygun Rails
Rails 6 application template for Raygun, the Carbon Five Rails application generator.
Stars: ✭ 48 (-17.24%)
Mutual labels:  template
Canvas
Base for Blogger, seo, twitter card, open graph, optimization and performance
Stars: ✭ 51 (-12.07%)
Mutual labels:  template
Trust
Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows
Stars: ✭ 1,072 (+1748.28%)
Mutual labels:  template
Quickapp Boilerplate Template
🔨致力于构建更为优雅的「快应用」开发脚手架模板。https://quickapp.lovejade.cn/tag/quickapp/
Stars: ✭ 58 (+0%)
Mutual labels:  template

bash-utils

some utils for bash script.

intro

I always use the bash as my devops script, while it's boring to write the condition judgement/echo statement/exit.

So, I want to make the bash script short and clear.

I have collected some useful functions into this repo, which save me a lot of time in the past few years.

Just source the utils.sh and write the code calling the functions.

You can just focus on the logical, not the bash syntax and expression

example

echo_separator

echo_step "1. begin to validate the params"

if_empty_then_exit "$1" "the first param required!"
FILE="${1}"
if_path_not_exist_then_exit "${FILE}" "file not exist"

VALUE=$(if_empty_return_default "${2}" 123)

usage

curl https://raw.githubusercontent.com/wklken/bash-utils/master/utils.sh > utils.sh && curl https://raw.githubusercontent.com/wklken/bash-utils/master/template.sh > run.sh

Donation

You can Buy me a coffee:) link

change log

2018-06-30 add some useful function from pure-bash-bible



wklken

Github: https://github.com/wklken

Blog: http://www.wklken.me

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].