4 ms·
The are two main responses to this comment as I write this. One of them lists only regular files. One of them lists anything that isn't a directory. And that's
by kps 6y ago
The are two main responses to this comment as I write this. One of them lists only regular files. One of them lists anything that isn't a directory. And that's why there isn't a short and simple command.
- rmetzler 6y agoah, yes, the simple test only had files, no symlinks, hidden files, etc, anything else you might want to distinguish upon in a shell script. But I don't think it's too hard to solve this problem. A command which filters should also be able to invert the filter. One example for this is grep -v.