Hacker Public Radio

HPR2045: Some other Bash tips


Listen Later

Some other Bash tips
Expansion
As we saw in the last episode 1951 (and others in this sub-series) there are eight types of expansion applied to the command line in the following order:
Brace expansion (we looked at this subject in episode 1884)
Tilde expansion (seen in episode 1903)
Parameter and variable expansion (this was covered in episode 1648)
Command substitution (seen in episode 1903)
Arithmetic expansion (seen in episode 1951)
Process substitution
Word splitting
Pathname expansion
We will look at process substitution and word splitting in this episode but since there is a lot to cover in these subjects, we'll save pathname expansion for the next episode.
I have written out a moderately long set of notes about this subject and these are available here http://hackerpublicradio.org/eps/hpr2045/full_shownotes.html.
Links
HPR episode 1648 "Bash parameter manipulation": http://hackerpublicradio.org/eps.php?id=1648
HPR episode 1843 "Some Bash tips": http://hackerpublicradio.org/eps.php?id=1843
HPR episode 1884 "Some more Bash tips": http://hackerpublicradio.org/eps.php?id=1884
HPR episode 1903 "Some further Bash tips": http://hackerpublicradio.org/eps.php?id=1903
HPR episode 1951 "Some additional Bash tips": http://hackerpublicradio.org/eps.php?id=1951
"Introduction to sed" series on HPR:
Part 1: http://hackerpublicradio.org/eps.php?id=1976
Part 2: http://hackerpublicradio.org/eps.php?id=1986
Part 3: http://hackerpublicradio.org/eps.php?id=1997
Part 4: http://hackerpublicradio.org/eps.php?id=2011
Wikipedia article on the "Named pipe": https://en.wikipedia.org/wiki/Named_pipe
Wikipedia article on the "IFS" variable: https://en.wikipedia.org/wiki/Internal_field_separator
Advanced Bash-Scripting Guide: Section 9.1 Bash Internal Variables (including IFS): http://www.tldp.org/LDP/abs/html/internalvariables.html
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Infinite Monkey Cage by BBC Radio 4

The Infinite Monkey Cage

1,952 Listeners

Click Here by Recorded Future News

Click Here

418 Listeners

Hacker And The Fed by Chris Tarbell & Hector Monsegur

Hacker And The Fed

168 Listeners