"find": Kommandozeilen-Option "-exec" nicht implementiert

realdocsnyder

Neuer User
Mitglied seit
5 Jan 2006
Beiträge
65
Punkte für Reaktionen
1
Punkte
6
Hallo Forum!

Bei dem Programm "find" auf der Fritz!Box ist die Kommandozeilen-Option "-exec" nicht implementiert. Gibt es eine Implementierung, bei der diese Option zur Verfügung steht?

Bin für jeden Hinweis dankbar!

Gruß, Doc
 
Auf SuSE: man busybox:
find
find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy. The default PATH is the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:

-follow Dereference symbolic links.
-name PATTERN File name (leading directories removed) matches PATTERN.
-print Print (default and assumed).

-type X Filetype matches X (where X is one of: f,d,l,b,c,...)
-perm PERMS Permissions match any of (+NNN); all of (-NNN);
or exactly (NNN)
-mtime TIME Modified time is greater than (+N); less than (-N);
or exactly (N) days
-newer FILE Modified time is more recent than FILE's
-inum N File has inode number N

Example:

$ find / -name passwd
/etc/passwd

-------------------------------

find . -name "xxx*" | while read a
do
grep.... $a
execme $a
done
 
@haveaniceday

Der Tipp mit der Pipe ist gut und ist ein brauchbarer Workaround ;o)

Danke für den Hinweis!

Gruß, Doc
 
Kostenlos!

Statistik des Forums

Themen
248,887
Beiträge
2,303,977
Mitglieder
378,565
Neuestes Mitglied
BenGradish