INSTRUCTIONS 3/4: The answer is correct, but it's not accepted.
Add a second line to range.sh to print the name and record count of the longest file in the directory as well as the shortest. This line should be a duplicate of the one you have already written, but with sort -n -r rather than sort -n.
wc -1 $@ | grep -v total | sort -n | head -n 1
wc -1 $@ | grep -v total | sort -n -r | head -n 1
Link to error: How can one shell script do many things?
INSTRUCTIONS 3/4: The answer is correct, but it's not accepted.
Add a second line to range.sh to print the name and record count of the longest file in the directory as well as the shortest. This line should be a duplicate of the one you have already written, but with sort -n -r rather than sort -n.
wc -1 $@ | grep -v total | sort -n | head -n 1 wc -1 $@ | grep -v total | sort -n -r | head -n 1
cc @Robert-cabral @sylarbui @MelRemy