Re: [wmii] snap: 20060313, proglist() spike

From: Lars Noschinski <lars_AT_public.noschinski.de>
Date: Tue, 14 Mar 2006 10:27:35 +0100

* Anselm R. Garbe <garbeam_AT_wmii.de> [2006-03-14 09:58]:
>On Mon, Mar 13, 2006 at 12:27:01PM -0800, Suraj N. Kurapati wrote:
>> echo "$PATH" | tr ':' '\n' | grep -v '^$' | sort -u | while read
>> dir; do find "$dir" -perm -u+x \! -type d -print | sed 's,^.*/,,';
>> done | sort -u
>
>Can someone confirm if that works on BSD? Why are there two
>'sort -u' filters?
>
>The find args and the sort -u arg smell like a gnu... \! looks
>very strange. What is wrong with -type f?

If the find args would be gnu, then there would be two dashes ;)
find and sort syntax are SUSv2 compatible.
Received on Tue Mar 14 2006 - 10:28:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:10 UTC