Solved

Looking for a find command

Posted on 2002-03-21
2
228 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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix Command -- Challenging  question 7 106
Unix/bash: scripted arithmetic 13 103
how to send mail in unix 2 48
sed command 3 27
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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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

734 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