|
| From: | Reuben Thomas |
| Subject: | ls -l|head seems to look at all files in directory |
| Date: | Mon, 25 May 2009 14:43:50 +0100 (BST) |
| User-agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
Hi,If I do "ls -l |head" on a directory with many files in it, it takes a long time to complete, suggesting that it has read the entire directory. Since no sorting is involved, why has it done this?
-- http://rrt.sc3d.org/ sane, a. having tragedy in the heart and comedy in the head (Chesterton)
| [Prev in Thread] | Current Thread | [Next in Thread] |