ITS 2310 - Linux I


Shell Scripting Lessons

Objectives:

This lesson provides more material on shell scripting. Objectives important to this lesson:

  1. check/change your field delimiter
  2. read a record at a time
  3. assign field contents to variables
  4. multiple ways to read a file
Concepts:
In week 14, I called your attention to two web sites that have lessons on reading data files from a shell script.

The first one I showed you was https://www.shell-tips.com/bash/how-to-parse-csv-file/

The second one I showed you was https://www.theunixschool.com/2012/05/shell-read-text-or-csv-file-and-extract.html

Both of them have good material that will "inform your choices" when you are writing shell scripts.