Link to home
Start Free TrialLog in
Avatar of Member_2_4942450
Member_2_4942450

asked on

Find all the executable files in unix inside the directory and all sub directories

I need to Find all the executable files in unix inside the directory and all sub directories
Avatar of Member_2_4942450
Member_2_4942450

ASKER

Oh I then need to find the unique file names

I was able to figure out ls -RF will give me the executable  that are denoted by a star.

Then I need to take the ones denoted by a star out and list them
how would I do this in a script

ASKER CERTIFIED SOLUTION
Avatar of Member_2_4942450
Member_2_4942450

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
The more standard way of doing this is

find  fileLab -type f -perm /111 | awk -F/ '{print $NF}' | sort -u