hey all,,
I need a script or line of command that counts files that have "x" perrmission.
thanks.
hey all,,
I need a script or line of command that counts files that have "x" perrmission.
thanks.
jaysunn (4th June 2009)
You can give this a try. Change to the directory that you are planning to perform the executable count. And execute the following:
Code:find . -type f -perm -o+rx | wc -l
Hope this helps.
Jaysunn![]()
GNU/find has the -executable option:
Code:find /usr/sbin -executable | wc -l
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
jaysunn (4th June 2009)
thanks jaysunn & nixcraft![]()
nixcraft i think ur command seeks also in subdirectories ,,
when using urs i got the number 318 (wide number)
when using jaysnn's i get the number "4"
10x..
jaysunn (4th June 2009)
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
jaysunn (5th June 2009)
There are currently 1 users browsing this thread. (0 members and 1 guests)