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....


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.



Jan 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here