logoISU  

CS469/569 - Linux and Unix Administration and Networking

Spring 2022

Displaying ./code/h5/a.sh

#!/bin/bash

# (2 points)
# List the files (non-hidden) found in the current directory with a leading
# index (formatted to three columns).  ex:
# > ./a.sh
#   1: a.sh
#   2: b.sh
#   3: c.sh

# Initialize an index variable to 1:

# Use a for - in loop with a wild-card to expand all the files in the current
# directory: