Category: Programing

It has been awhile since I have done any serious programing. I am dabbling a bit more these days.

Variable Odds and Ends! Shell Scripting Part 6

Published on September 16, 2022 at 6:18 pm by LEW

Introduction

In this post we will cover a few odds and ends of variables in bash scripting. Specifically local variables, variable expansion, and variable arrays. With the information presented in this series of posts, you should be able to write some bash shell scripts that can assist you in a variety of tasks. (more…)

SharePin It!

Using Functions! Shell Scripting Part 5

Published on September 15, 2022 at 1:02 am by LEW

Introduction

Today we will take a look at how to use functions in bash scripts. This is important, because functions in bash perform a little differently than in other programming languages. (more…)

SharePin It!

User Input! Shell Scripting Part 4

Published on September 12, 2022 at 6:27 pm by LEW

Introduction

In this installment we are going to up the complexity a little. We will be collecting input from the user while the script is running, and introducing a couple of new structures (while loop and case). (more…)

SharePin It!

Command Line Arguments! Shell Scripting Part 3

Published on September 11, 2022 at 1:15 am by LEW

Introduction

In this installment, we will be looking at passing data to a shell script using command line arguments. These are arguments that are added when you execute a shell script, and can be pulled into the script. (more…)

SharePin It!

Simple Script Example! Shell Scripting – Part 2

Published on September 9, 2022 at 5:08 pm by LEW

Introduction

In this post we will be covering the various parts of, as well as creating, a simple shell script to do some fairly basic stuff. I will be explaining how I go about scripting. Just remember, that’s not the end all. Everyone will develop their own way of doing things that works for them. (more…)

SharePin It!

Next Page »