LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2003, 03:04 AM   #1
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
Question 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'?
 
Old 04-03-2003, 03:48 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
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 ';'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync syntax to skip directory, but copy select files.. tnicol Linux - Software 3 07-24-2007 06:40 AM
No longer able to select files from my user home directory oily_rags SUSE / openSUSE 4 11-06-2005 02:39 PM
SuSE 9.3-You can only select local files bmk SUSE / openSUSE 8 09-08-2005 06:08 PM
GtkFileChooserDialog: How to select both, files and directories? froedi Programming 0 06-11-2005 08:07 AM
cron job to delete files based on attributes alpha21 Linux - General 3 11-09-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration