Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

Bash-Library

A modular Bash standard library providing reusable shell scripting components for logging and more. Designed for maintainability, readability, and portability in Bash-based automation.


Available Libraries

LibraryDescription
archiveFunctions for creating, extracting, and managing archive files (tar, zip, etc.)
checksumCalculate and verify file checksums (md5, sha256, etc.)
downloadUtilities for downloading files with error handling
fileFile manipulation helpers (copy, existence checks, etc.)
loggerWrite log messages with severity levels (info, warn, error, etc.)

Usage Example

import() {
local module="${1}"local bash_lib_base_url='https://raw.githubusercontent.com/Element-Logic/bash-library/refs/heads/main'# Source the modulesource<(curl -fsSL "${bash_lib_base_url}/${module}/lib")
}
import archive
import checksum
import download
import file
import logger
# Example usage
log "info""This is an info message"
log "error""Something went wrong"

About

Bash utility functions and modules to simplify and standardize shell scripting.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages