On 2013-10-18, at 15:45, Truls Becken wrote: > If you want to do it this way around, a command is missing for filtering a > list of file names, as already mentioned by Raphaƫl. It could be generalised > to a command for filtering stdin by calling a predicate command, e.g: > > du -a | cut -f2 | filter test -w
Just for kicks I wrote filter. With this, the above gives same result as: find . -perm +222 At least after sorting both outputs, and as long as the fact that these particular tests do not check the same thing does not bite you. Not sure if it is useful. It is certainly not standard. As already mentioned, test does not provide the same set of tests as find. -Truls
filter.c
Description: Binary data