?
Solved

Looking for a find command

Posted on 2002-03-21
2
Medium Priority
?
237 Views
Last Modified: 2010-04-21
Hi, i'm trying to come up with a find command that will find all executables on the system and sort them by group and then by user

Here is what I have come up with:

find / -perm -0111  ! -type d -ls ! -print

Any help would be greatly appreciated.

0
Comment
Question by:thewing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
ID: 6885480
Use:

find / -perm -0111  ! -type d -ls | sort -k 5,6
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6885493
Hi thewing,

   Try the following command:

    find . -perm a=rwx,g-w,o-w -type f -ls | sort -k 6

    This will sort it by group, and you can change whatever the permission you want.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question