[TriLUG] Piping, redirection and shellscipts: 3/5/2025 7pm Eastern Standard time
brian mullan via TriLUG
trilug at trilug.org
Mon Mar 3 21:12:10 EST 2025
I use Bash a lot working with applications, systems, containers or
networks, mgmt & integration.
I've found and frequently use a few really useful Bash Github repositories
with collections of Bash Functions
that you can use in your own Bash scripts. I've learned a lot from them
and have to say my Bash
scripts now have capabilities I'd probably never been smart enough to
create myself.
*In your script(s) you just "source" the file you create or download *from
the following URLs:
Sharing these in case someone else finds them useful.
*Collections of Functions for Bash GUI's*
*EasyBashGUI:*
*https://github.com/BashGui/easybashgui/blob/master/docs/install.md
<https://github.com/BashGui/easybashgui/blob/master/docs/install.md>*
Simplified way to code bash made GUI frontend dialogs!
*Script-Dialog:*
*https://github.com/lunarcloud/script-dialog?tab=readme-ov-file
<https://github.com/lunarcloud/script-dialog?tab=readme-ov-file>*
> Create bash scripts that utilize the best dialog system that is available.
> Intended for Linux,
> but has been tested on macOS and Windows, and should work on other
> unix-like OSs.
>
> *If it's launched from a GUI *(like a .desktop shortcut or the dolphin
> file manager), it will prefer *kdialog* in Qt-based desktops
> and *zenity* in other environments.
>
> If neither of those are available, then relaunch-if-not-visible will
> relaunch the app in a terminal so that a terminal UI can
> be used.
>
> *If it's launched in a *
> *terminal*It will use *whiptail* or
> *dialog*
> If neither of those are available, then it will fallback to basic terminal
> input/output with tools like read and echo
*Collections of General Bash Functions*
*BashMatic:*
*https://github.com/kigster/bashmatic
<https://github.com/kigster/bashmatic>*
*Bashmatic* is a BASH framework, meaning its a *collection of BASH
functions (almost 900 of them)* that, we hope,
make BASH programming *easier, more enjoyable, and more importantly, fun* -
due to the library’s focus on providing
the developer with a constant feedback about what is happening, while a
script that uses Bashmatic’s helpers is running.
*Bash-Concurrent:*
*https://github.com/themattrix/bash-concurrent
<https://github.com/themattrix/bash-concurrent>*
A *Bash function to run tasks in parallel *and display pretty output as
they complete.
Brian
More information about the TriLUG
mailing list