#!/bin/bash # # Keep the first 2 lines as they are. # Anything beyond the first 2 lines that start with the pound-sign # designate a comment. It is customary to include comments at the # top, like this, to document what the shell script does. # This file can be called whatever you want, though a typical name # will include an extension of .sh or .bash, even though the OS will # still know what it is by the first line. # For example, I would call this file "example_shell_script.bash" # # -MCW Fall 2023 # # Do something fairly easy. This will get a long list of the files # in the current directory, and pass them to awk to display a few of the # fields. ls -l | grep "lab" | awk '{ print $9" timestamp: "$6" "$7" "$8 }'