In-Depth Series: Bash Scripting
- Number of episodes: 57
- Open/closed: open
- Date of earliest show: 2010-03-24
- Date of latest show: 2023-03-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.
Released: 2023-03-13. Duration: 00:11:18. Flag: Clean.
Tags: pipe, fifo, mkfifo, Linux, shell.
Have you ever named a pipe? If not, this is the episode you've been waiting for.
Listen in ogg, spx, or mp3 format.
Released: 2022-11-08. Duration: 00:08:33. Flag: Explicit.
Tags: Bash, plural, ngettext.
How to use English singular and plural words in messages
Listen in ogg, spx, or mp3 format.
Released: 2022-10-26. Duration: 00:16:40. Flag: Explicit.
Tags: Bash,Boolean expression,short-circuit evaluation.
Found I could do this in Bash, so wanted to share!
Listen in ogg, spx, or mp3 format.
Released: 2022-06-24. Duration: 00:20:25. Flag: Clean.
Tags: shell.
Carl and special guests provide some shell tips and examples.
Listen in ogg, spx, or mp3 format.
Released: 2022-03-14. Duration: 00:24:35. Flag: Explicit.
Tags: Bash,eval,mapfile,environment variables.
Using 'eval', 'mapfile' and environment variables
Listen in ogg, spx, or mp3 format.
Released: 2021-09-01. Duration: 00:45:38. Flag: Explicit.
Tags: Bash,coproc,subshell,coprocess,pipe,file descriptor.
Sending multiple queries to a running instance of sqlite3
Listen in ogg, spx, or mp3 format.
Released: 2020-05-11. Duration: 00:13:19. Flag: Explicit.
Tags: Bash,quotes.
How to add quotes to quoted strings in Bash
Listen in ogg, spx, or mp3 format.
Released: 2020-02-19. Duration: 00:41:37. Flag: Explicit.
Tags: Bash,variable,environment,environment variable.
Environment variables
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
Released: 2019-02-25. Duration: 00:32:35. Flag: Explicit.
Tags: Bash,array,delete,positional parameters.
Deleting arrays; positional and special parameters in Bash
Listen in ogg, spx, or mp3 format.
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)
Listen in ogg, spx, or mp3 format.
Released: 2019-01-28. Duration: 00:18:24. Flag: Explicit.
Tags: Bash,ShellCheck.
Some suggestions on how to improve a Bash script
Listen in ogg, spx, or mp3 format.
Released: 2019-01-17. Duration: 00:31:38. Flag: Explicit.
Tags: Bash,array,indexed array,associative array,parameter expansion.
Arrays in Bash (part 3)
Listen in ogg, spx, or mp3 format.
Released: 2019-01-03. Duration: 00:34:16. Flag: Explicit.
Tags: Bash,array,indexed array,associative array.
Arrays in Bash (part 2)
Listen in ogg, spx, or mp3 format.
Released: 2018-12-20. Duration: 00:24:00. Flag: Explicit.
Tags: Bash,array,indexed array,associative array.
Arrays in Bash (part 1)
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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'
Listen in ogg, spx, or mp3 format.
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)
Listen in ogg, spx, or mp3 format.
Released: 2018-10-25. Duration: 00:28:22. Flag: Explicit.
Tags: Bash,test,regular expression.
Making decisions in Bash (part 4)
Listen in ogg, spx, or mp3 format.
Released: 2018-10-11. Duration: 00:28:22. Flag: Explicit.
Tags: Bash,test,conditional expression,string comparison,pattern.
Making decisions in Bash (part 3)
Listen in ogg, spx, or mp3 format.
Released: 2018-09-27. Duration: 00:22:52. Flag: Explicit.
Tags: Bash,test,while,until,if,case.
Making decisions in Bash (part 2)
Listen in ogg, spx, or mp3 format.
Released: 2018-09-13. Duration: 00:21:45. Flag: Explicit.
Tags: Bash,test,true,false.
Making decisions in Bash (part 1)
Listen in ogg, spx, or mp3 format.
Released: 2018-02-26. Duration: 00:11:10. Flag: Explicit.
Tags: Raspberry Pi, RPi.
How to collect identifying information about RPi devices
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
Released: 2017-12-20. Duration: 00:33:53. Flag: Explicit.
Tags: coding,Bash,script,function.
A few more possibly useful Bash functions are discussed
Listen in ogg, spx, or mp3 format.
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.
Listen in ogg, spx, or mp3 format.
Released: 2017-06-20. Duration: 00:28:27. Flag: Explicit.
Tags: Bash,shopt,filename expansion,scp,rsync.
How does scp manage extended glob patterns?
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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)
Listen in ogg, spx, or mp3 format.
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)
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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.
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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.
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
Released: 2015-08-19. Duration: 00:15:25. Flag: Clean.
Tags: bash, scripting, terrible.
An overview of a terrible, hacky method of waking up.
Listen in ogg, spx, or mp3 format.
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.
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
Released: 2014-01-24. Duration: 00:38:32. Flag: Explicit.
Tags: Bash,YouTube,download.
A hacked script to download youtube videos
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
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
Listen in ogg, spx, or mp3 format.
Released: 2013-03-05. Duration: 00:27:18. Flag: Explicit.
Tags: Bash,scripting .
Some personal anecdotes on writing Bash scripts
Listen in ogg, spx, or mp3 format.
Released: 2010-11-17. Duration: 00:38:33. Flag: Explicit.
Tags: bash,cli,"command line".
Introduction to the man, info, and appropos commands, among other basics
Listen in ogg, spx, or mp3 format.
Released: 2010-08-11. Duration: 00:20:32. Flag: Explicit.
Tags: bash,"bash basics","bash scripting".
Introduction to bash scripting, with quick explanations of many adjacent concepts
Listen in ogg, spx, or mp3 format.
Released: 2010-05-24. Duration: 00:08:55. Flag: Explicit.
Tags: shell,scripts,scripting,bash.
An introduction to a script for recording podcasts
Listen in ogg, spx, or mp3 format.
Released: 2010-03-24. Duration: 00:08:32. Flag: Explicit.
Tags: bash,loops,while loops,for loops,scripting,bash scripting.
While aboard an Airbus 320, Ken Fallon describes loops that are available in BASH
Listen in ogg, spx, or mp3 format.