LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   select files with attributes (https://www.linuxquestions.org/questions/linux-general-1/select-files-with-attributes-53177/)

Quis 04-03-2003 02:04 AM

select files with attributes
 
Hi,

is there any way to select files in a command-line with their
attributes?

e.g.
i want to move all executables from directory A to dir B or,

list all executables in a directory, or

'chmod' all files with attribute 'write' on 'others'?

Frustin 04-03-2003 02:48 AM

how about to move all files with a specific permission:
eg for all file with any of the permissions bit being executable set:

find -perm +111 -exec mv '{}' /some/other/dir ';'


All times are GMT -5. The time now is 07:50 AM.