Site Map - skip to main content - dyslexic font - mobile - text - print

Hobby Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr1951 :: Some additional Bash tips

More about expansion in Bash: this time arithmetic expansion

<< First, < Previous, Latest >>

Host Image
Hosted by Dave Morriss on 2016-01-25 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (2)

Part of the series: Bash Scripting

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.

Some additional Bash tips

Expansion

As we saw in the last episode 1903 there are seven 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
  • Word splitting
  • Pathname expansion

There is also another, process substitution, which occurs after arithmetic expansion on systems that can implement it.

We will look at one more of these expansion types in this episode but since there is a lot to cover, we'll continue in a later episode.

I have written out a moderately long set of notes about this subject and these are available here http://hackerpublicradio.org/eps/hpr1951_full_shownotes.html.

Audio Note

This time, in the spirit of experimentation and as a way of learning Audacity I processed my audio thus:

  • Turned the stereo tracks to mono

  • Used a Noise Gate plug-in to reduce background noise (after "training" it on some silence)

  • Performed a Truncate Silence pass to reduce the length of pauses

  • Applied a small amount of amplification

Let me know if this had any positive or negative effects on the end product.


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2016-01-27T04:32:57Z by Frank

Thanks.

This is a topic I've long wanted to know more about, if only to show off to my brother, who is Linux-curious, but sticks with Windows so he can play is antediluvian Star Wars game.

I look forward to working my way through your long show notes and learning stuff.

Comment #2 posted on 2016-01-27T13:50:59Z by Dave Morriss

Thanks Frank

I'm glad you found it interesting. I hope the long notes help, I enjoyed researching and writing them.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to
record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?