Skip to content

athias/Bash_Snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Snippets

A collection of Bash snippets for use, evaluation, and updates. Many of these are authored by me, but some are simply good scripts that I've found useful over time. If you are curious about the authors, please take a look inside the script.

Purpose

There are three main purposes behind these code snippets, and

  • To document scripts performing very specific functions
    • Saving time on repeated code
    • Providing consistency across code
    • Reminders of how to accomplish certain things
  • To serve as examples of how to do some moderately more complex scripts
    • Argument parsing
    • Menu driven system
    • Parsing read files
    • etc.
  • To help others see learn
    • Intended to be documented well
    • Brief, specific examples

The Scripts

Script Name Description
colors.sh Display a Grid of Terminal Colors
password_test.sh Validate password inputs and check against hash
pid_watch.sh Function to track pid of a background process
root_check.sh Checks to ensure the User has root privileges
sub_script_pid.sh Identifies pid of a process within a function
sw.sh A simple stopwatch or countdown timer

About

A Collection of Bash Snippets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages