[SunRescue] finding a number of files in a dirB

Dave McGuire mcguire at neurotica.com
Tue Feb 22 02:31:20 CST 2000


On February 22, Kent Rankin wrote:
> 	Mind you, I also noticed an individual(*grin*) that recommended a "ls |
> wc -l", but that would potentially produce erroneous results due to the
> tabulation of files when listed without the long format.  However,
> credit should be given for not having introduced the ". & .." bug.

  Nope.  ls knows when its output is being redirected or piped...under
those circumstances, it prints one filename per line.

  Try "ls | cat" to demonstrate this.

  ;-)

        -Dave McGuire






More information about the rescue mailing list