logoISU  

CS469/569 - Linux and Unix Administration and Networking

Spring 2022

Displaying ./code/h6/d.sh

#!/bin/bash

# Implement the equivalent to 'cat -n <file>', i.e. read lines of input and
# output those lines with a line number prefixed to it.  It should look as
# closely as the cat -n output as possible, w/o ever using cat.
# Hint: The -r option to read may be a good idea.