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.
Tags: coding,Bash,script,function.
Listen in ogg,
spx, or
mp3 format. | Comments (0)
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.
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 here.
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.
Show Transcript
Automatically generated using whisper
whisper --model tiny --language en hpr2483.wav
<< First, < Previous, Next >, Latest >>