Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


In-Depth Series: Bash Scripting

  • Number of episodes: 49
  • Open/closed: open
  • Date of earliest show: 2010-03-24
  • Date of latest show: 2019-08-13
  • Series RSS feeds: ogg, spx, mp3
This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.

hpr2877 :: Using Zenity with Pdmenu hosted by Dave Morriss

Released: 2019-08-13. Duration: 00:22:38. Flag: Explicit.
Tags: zenity,Bash scripting,pdmenu,GTK+.
Zenity is a rather cool program that will display GTK+ dialogs from a script

hpr2807 :: Are bash local variables local? hosted by clacke

Released: 2019-05-07. Duration: 00:11:01. Flag: Clean.
Tags: bash, perl, scope, dynamic scope, lexical scope.
A lesson on dynamic scope vs lexical scope

hpr2793 :: bash coproc: the future (2009) is here hosted by clacke

Released: 2019-04-17. Duration: 00:21:16. Flag: Clean.
Tags: bash, coproc, subshell.
clacke discovers bash's coproc keyword and explains some toy examples

hpr2756 :: Bash Tips - 20 hosted by Dave Morriss

Released: 2019-02-25. Duration: 00:32:35. Flag: Explicit.
Tags: Bash,array,delete,positional parameters.
Deleting arrays; positional and special parameters in Bash

hpr2739 :: Bash Tips - 19 hosted by Dave Morriss

Released: 2019-01-31. Duration: 00:25:53. Flag: Explicit.
Tags: Bash,array,declare,typeset,local,readonly,read,mapfile,readarray.
Arrays in Bash (part 4)

hpr2736 :: Response to show 2720 hosted by Dave Morriss

Released: 2019-01-28. Duration: 00:18:24. Flag: Explicit.
Tags: Bash,ShellCheck.
Some suggestions on how to improve a Bash script

hpr2729 :: Bash Tips - 18 hosted by Dave Morriss

Released: 2019-01-17. Duration: 00:31:38. Flag: Explicit.
Tags: Bash,array,indexed array,associative array,parameter expansion.
Arrays in Bash (part 3)

hpr2719 :: Bash Tips - 17 hosted by Dave Morriss

Released: 2019-01-03. Duration: 00:34:16. Flag: Explicit.
Tags: Bash,array,indexed array,associative array.
Arrays in Bash (part 2)

hpr2709 :: Bash Tips - 16 hosted by Dave Morriss

Released: 2018-12-20. Duration: 00:24:00. Flag: Explicit.
Tags: Bash,array,indexed array,associative array.
Arrays in Bash (part 1)

hpr2699 :: Bash Tips - 15 hosted by Dave Morriss

Released: 2018-12-06. Duration: 00:29:54. Flag: Explicit.
Tags: Bash,loop,ls,pipe,pipeline,find,extglob.
Some of the pitfalls when using loops in Bash

hpr2689 :: Bash Tips - 14 hosted by Dave Morriss

Released: 2018-11-22. Duration: 00:28:08. Flag: Explicit.
Tags: Bash,loop,for,break,continue.
More about loops - the 'for' loop, 'break' and 'continue'

hpr2679 :: Extra ancillary Bash tips - 13 hosted by Dave Morriss

Released: 2018-11-08. Duration: 00:36:42. Flag: Explicit.
Tags: Bash,extended test,regular expression,capture group,BASH_REMATCH,back reference.
Making decisions in Bash (part 5)

hpr2669 :: Additional ancillary Bash tips - 12 hosted by Dave Morriss

Released: 2018-10-25. Duration: 00:28:22. Flag: Explicit.
Tags: Bash,test,regular expression.
Making decisions in Bash (part 4)

hpr2659 :: Further ancillary Bash tips - 11 hosted by Dave Morriss

Released: 2018-10-11. Duration: 00:28:22. Flag: Explicit.
Tags: Bash,test,conditional expression,string comparison,pattern.
Making decisions in Bash (part 3)

hpr2649 :: More ancillary Bash tips - 10 hosted by Dave Morriss

Released: 2018-09-27. Duration: 00:22:52. Flag: Explicit.
Tags: Bash,test,while,until,if,case.
Making decisions in Bash (part 2)

hpr2639 :: Some ancillary Bash tips - 9 hosted by Dave Morriss

Released: 2018-09-13. Duration: 00:21:45. Flag: Explicit.
Tags: Bash,test,true,false.
Making decisions in Bash (part 1)

hpr2496 :: Making a Raspberry Pi inventory hosted by Dave Morriss

Released: 2018-02-26. Duration: 00:11:10. Flag: Explicit.
Tags: Raspberry Pi, RPi.
How to collect identifying information about RPi devices

hpr2483 :: Useful Bash functions - part 4 hosted by Dave Morriss

Released: 2018-02-07. Duration: 00:39:46. Flag: Explicit.
Tags: coding,Bash,script,function.
A Bash function for parsing lists of numbers and ranges

hpr2469 :: A flight itinerary in Bash hosted by Dave Morriss

Released: 2018-01-18. Duration: 00:17:45. Flag: Explicit.
Tags: Bash,date,ISO 8601,epoch.
Working out dates and times in a Bash script

hpr2448 :: Useful Bash functions - part 3 hosted by Dave Morriss

Released: 2017-12-20. Duration: 00:33:53. Flag: Explicit.
Tags: coding,Bash,script,function.
A few more possibly useful Bash functions are discussed

hpr2349 :: Customizing my bash prompt hosted by Windigo

Released: 2017-08-03. Duration: 00:24:12. Flag: Explicit.
Tags: bash,command line,configuration,terminal.
A detailed look into how, and why, to customize a bash prompt.

hpr2317 :: Bash snippet - extglob and scp hosted by Dave Morriss

Released: 2017-06-20. Duration: 00:28:27. Flag: Explicit.
Tags: Bash,shopt,filename expansion,scp,rsync.
How does scp manage extended glob patterns?

hpr2302 :: Bash snippet - nullglob hosted by Dave Morriss

Released: 2017-05-30. Duration: 00:07:08. Flag: Explicit.
Tags: Bash,shopt,filename expansion.
After learning about the nullglob option I have started to use it

hpr2293 :: More supplementary Bash tips hosted by Dave Morriss

Released: 2017-05-17. Duration: 00:38:25. Flag: Explicit.
Tags: Bash, expansion, filename expansion, extglob, extended pattern matching.
Finishing off the subject of expansion in Bash (part 2)

hpr2278 :: Some supplementary Bash tips hosted by Dave Morriss

Released: 2017-04-26. Duration: 00:39:35. Flag: Explicit.
Tags: Bash,expansion,pathname expansion,shopt.
Finishing off the subject of expansion in Bash (part 1)

hpr2135 :: Audio speedup script hosted by Dave Morriss

Released: 2016-10-07. Duration: 00:27:59. Flag: Explicit.
Tags: bash,sox,speed.
I want to speed up some of my podcasts and truncate silence in them too so I wrote a script to do it

hpr2096 :: Useful Bash functions - part 2 hosted by Dave Morriss

Released: 2016-08-15. Duration: 00:23:21. Flag: Explicit.
Tags: coding,Bash,script,function.
The further development of a Bash function that may be of use in your scripts

hpr2045 :: Some other Bash tips hosted by Dave Morriss

Released: 2016-06-03. Duration: 00:55:53. Flag: Explicit.
Tags: Bash,expansion,process substitution, word splitting.
Yet more information about types of expansion in Bash

hpr2003 :: Using the Incron file watching daemon hosted by b-yeezi

Released: 2016-04-06. Duration: 00:11:38. Flag: Explicit.
Tags: incron,bash,watcher,daemon.
I briefly introduce the incron file watching daemon, and give an example of how I use it.

hpr1990 :: Pomodoro Timer - The Evolution of a Script part deux hosted by Nacho Jordi

Released: 2016-03-18. Duration: 00:28:54. Flag: Clean.
Tags: Productivity, Bash basics, Programming design, Pomodoro, Timer, loops, sleep.
Further evolutions of a pomodoro script that got a life of its own

hpr1987 :: Pomodoro Timer - The Evolution of a Script (pt 1) hosted by Nacho Jordi

Released: 2016-03-15. Duration: 00:22:07. Flag: Clean.
Tags: Productivity, Bash basics, Programming design, Pomodoro, Timer, loops, sleep.
The different stages of a bash script that was created accidentally

hpr1952 :: Time now Ladies and Gents hosted by Ken Fallon

Released: 2016-01-26. Duration: 00:31:00. Flag: Clean.
Tags: fix_tags,ffprobe,ffmpeg,bc,sed,awk,grep,time,iso8601,date,mediainfo,xmlstarlet.
How to get the total duration of a lot of media files.

hpr1951 :: Some additional Bash tips hosted by Dave Morriss

Released: 2016-01-25. Duration: 00:40:24. Flag: Explicit.
Tags: Bash,expansion,arithmetic expansion,shell arithmetic,number base.
More about expansion in Bash: this time arithmetic expansion

hpr1903 :: Some further Bash tips hosted by Dave Morriss

Released: 2015-11-18. Duration: 00:29:18. Flag: Explicit.
Tags: Bash,expansion,tilde expansion,command substitution.
Some more information about types of expansion in Bash

hpr1884 :: Some more Bash tips hosted by Dave Morriss

Released: 2015-10-22. Duration: 00:15:49. Flag: Explicit.
Tags: Bash,brace expansion,seq.
Some information about brace expansion in Bash that you might not know

hpr1843 :: Some Bash tips hosted by Dave Morriss

Released: 2015-08-26. Duration: 00:21:17. Flag: Explicit.
Tags: Bash,pushd,popd,dirs.
A few useful Bash features that may not be well known

hpr1838 :: Waking up with Windigo hosted by Windigo

Released: 2015-08-19. Duration: 00:15:25. Flag: Clean.
Tags: bash, scripting, terrible.
An overview of a terrible, hacky method of waking up.

hpr1791 :: Organizing Photos with Bash hosted by Tony Pelaez

Released: 2015-06-15. Duration: 00:31:15. Flag: Explicit.
Tags: bash, photography, automation.
Use bash to simplify the process of organizing and backing up photographs.

hpr1757 :: Useful Bash functions hosted by Dave Morriss

Released: 2015-04-28. Duration: 00:27:42. Flag: Explicit.
Tags: coding,Bash,script,function.
Some Bash functions that may be of use in your scripts

hpr1710 :: Windows Remote Desktop on GNU/Linux hosted by Ken Fallon

Released: 2015-02-20. Duration: 00:11:19. Flag: Clean.
Tags: bash,xfreerdp,rdesktop,remmina.
A wrapper script for xfreerdp to make connecting to windows servers painless

hpr1648 :: Bash parameter manipulation hosted by Dave Morriss

Released: 2014-11-26. Duration: 00:40:33. Flag: Explicit.
Tags: Bash,script,parameter,variable.
A summary and aide memoire of Bash parameter expansion methods

hpr1430 :: thebestofyoutube.com download script hosted by Ken Fallon

Released: 2014-01-24. Duration: 00:38:32. Flag: Explicit.
Tags: Bash,YouTube,download.
A hacked script to download youtube videos

hpr1247 :: Recording Terrestrial Radio with bash scripts and cron jobs hosted by Jon Kulp

Released: 2013-05-14. Duration: 00:14:36. Flag: Explicit.
Tags: bash,scripting,radio,streamripper,simple audio player.
Using a Bash script to capture terrestrial radio

hpr1204 :: My Magnatune Downloader hosted by Dave Morriss

Released: 2013-03-14. Duration: 00:21:59. Flag: Explicit.
Tags: Magnatune,API,Bash,XML,XSLT,xsltproc.
How I download albums from Magnatune with Bash and Perl scripts

hpr1197 :: What I do with bash scripts hosted by Jon Kulp

Released: 2013-03-05. Duration: 00:27:18. Flag: Explicit.
Tags: Bash,scripting .
Some personal anecdotes on writing Bash scripts

hpr0598 :: Bash Scripting: Episode 2 Command Line Basics hosted by Ken Fallon

Released: 2010-11-17. Duration: 00:38:33. Flag: Explicit.

hpr0562 :: Introduction to bash scripting hosted by Ken Fallon

Released: 2010-08-11. Duration: 00:20:32. Flag: Explicit.

hpr0543 :: Xoke's Podcasting Script hosted by Xoke

Released: 2010-05-24. Duration: 00:08:55. Flag: Explicit.
Tags: shell,scripts,scripting,bash.
An introduction to a script for recording podcasts

hpr0531 :: bash loops hosted by Ken Fallon

Released: 2010-03-24. Duration: 00:08:32. Flag: Explicit.