Skip to content

Avoid BSDM*: "Obey the command Line." (*BSD Masochism.) bash shell scripts

Photo of Don Ellis
Hosted By
Don E. and 2 others
Avoid BSDM*: "Obey the command Line."  (*BSD Masochism.)  bash shell scripts

Details

Avoid BSDM*: "Obey the command Line."
*BSD Masochism.

Using BASH's getopt & typeset to simplify BASH code.

Presented by: Stephen Lembark of WorkHorse Computing.

"getopts" is a bash built-in that parses options and their arguments passed to a script, processing them sequentially within a while loop. It provides a structured way to handle complex input in BASH "shell scripts."

"Typeset" is a built-in Bash command. You can use the typeset command to declare variables and set their attributes. If no variable name is specified, it displays their values.

[https://site.sluug.org/presenters/steven-lembark](Steven Lembark)

www.stllinux.org/next

The url link to this ZOOM meeting is posted earlier on the day of the meeting at the www.stllinux.org home page. It is the "next" link called "linked here". You may have to refresh your browser after each time you check.

ONLINE MEETINGS ONLY until further notice.
ONLINE session will use remote video software.
HOW TO CONNECT instructions on https://stllinux.org/ web page and our mailing lists. Note that your browser cache may need to be refreshed each time you check the above web page for the instructions. We will open the remote session at about 6:00 PM Central Standard Time ( CST ), so that you can join early to test your microphone, screen and video sharing.

The Saint Louis MO, STL Linux Users Group (STLLUG) meets monthly to talk about Linux. This GNU/Linux Users Group usually holds its meetings on the third or fourth Thursday of every month. Meetings are free and open to everyone.

At 6:30 PM CST we start with introductions, announcements, current events of interest, and a general CALL FOR HELP segment. Then we will go into the presentation of our main topic, sometime around or after 7:00 PM CST.

Photo of Stl Linux Unix Users Group group
Stl Linux Unix Users Group
See more events
Online event
This event has passed