hpr2483 :: Useful Bash functions - part 4
A Bash function for parsing lists of numbers and ranges
Hosted by Dave Morriss on Wednesday, 2018-02-07 is flagged as Explicit and is released under a CC-BY-SA license.
coding, Bash, script, function.
(Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr2483
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:39:46
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.
Useful Bash functions - part 4
Overview
This is the fourth show about the Bash functions I use, and it may be the last unless I come up with something else that I think might be of general interest.
There is only one function to look at this time, but it's fairly complex so needs an entire episode devoted to it.
As before it would be interesting to receive feedback on this function 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 in a file on the server.
Links
- The GNU Bash Reference Manual
- ANSI-C Quoting section
- Previous HPR episodes in this group Useful Bash functions:
- Download the range_parse function and the range_demo.sh test script.