The command ls displays a list of all the fi les in your working directory (except dotfi les). Create a pipeline that counts the number of fi les. Hint: use ls, then wc with the appropriate option. Next, create a command that displays output like the following (where xx is the number of fi les):
I have xx files in my working directory.
Hint: Use echo (Chapter 12) with command substitution (Chapter 13), making use of the pipeline you just created.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here