datacamp-content / courses-introduction-to-shell

Introduction to Shell by Greg Wilson
Other
48 stars 47 forks source link

Correct answer is not accepted | Chapter 5 ex=7 #148

Closed kasthynguyen closed 6 years ago

kasthynguyen commented 6 years ago

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

error

ezgif-2-1a3f5a275a

cc @Robert-cabral @sylarbui @MelRemy