Quote:
Originally Posted by bbilheimer
Cool, thanks! So you use ls to list it in separate it lines then pipe it to wc to count those lines and print the total number.
That seems like such a hassle, though, there is no flag or something like that so that du or ls can simply show the total number of files in its output?
|
why do you think its a hassle? FWIW, you can just do it one time. save it as a shell library or function or shell script and you can reuse it next time. Its just a one time effort.