Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR1757: Useful Bash functions

Hosted by Dave Morriss on 2015-04-28 00:00:00
Download or Listen

Overview

I enjoy writing Bash scripts to solve various problems. In particular I have a number of scripts I use to manage the process of preparing a show for HPR, which I am developing at the moment.

My more complex Bash scripts use a lot of functions to perform the various tasks, and, in the nature of things, some of these functions can be of use in other scripts and are shared between them.

I thought I would share some of these functions with HPR listeners in the hopes that they might be useful. It would also be interesting to receive feedback on these functions and would be great if other Bash users contributed ideas of their own.

Full Notes

Since the notes explaining this subject are long, they have been placed here: https://hackerpublicradio.org/eps/hpr1757_full_shownotes.html, and an experimental ePub version is available here: https://hackerpublicradio.org/eps/hpr1757_full_shownotes.epub.

  1. Bash Support Vim plugin: https://www.vim.org/scripts/script.php?script_id=365
  2. HPR episode Bash parameter manipulation: https://hackerpublicradio.org/eps.php?id=1648
  3. How to write functions (from The Linux Documentation Project):
  4. Download the pad and yes_no functions: https://hackerpublicradio.org/eps/hpr1757_functions.sh

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.