New -find actions "rm" and "rm_r", silenced comparison results with -update*
This commit is contained in:
@ -696,35 +696,35 @@ may have specific parameters. See also their particular descriptions.
|
||||
.br
|
||||
"chown" and "chown_r" change the ownership and get the user id as param. E.g.:
|
||||
.br
|
||||
-find / -exec chown thomas
|
||||
-find / -exec chown thomas --
|
||||
.br
|
||||
"chgrp" and "chgrp_r" change the group attribute and get the group id as param.
|
||||
E.g.:
|
||||
.br
|
||||
-find / name 'news*' -type d -exec chgrp_r staff
|
||||
-find / name 'news*' -type d -exec chgrp_r staff --
|
||||
.br
|
||||
"chmod" and "chmod_r" change access permissions and get a mode string as param.
|
||||
E.g.:
|
||||
.br
|
||||
-find / -exec chmod a-w,a+r
|
||||
-find / -exec chmod a-w,a+r --
|
||||
.br
|
||||
"alter_date" and "alter_date_r" change the timestamps.
|
||||
They get a type character and a timestring as params.
|
||||
E.g.:
|
||||
.br
|
||||
-find / -exec alter_date "m" "Dec 30 19:34:12 2007"
|
||||
-find / -exec alter_date "m" "Dec 30 19:34:12 2007" --
|
||||
.br
|
||||
"lsdl" prints file information like shell command ls -dl.
|
||||
E.g.:
|
||||
.br
|
||||
-find / -exec lsdl
|
||||
-find / -exec lsdl --
|
||||
.br
|
||||
"compare" performs command -compare with the found file address as iso_rr_path
|
||||
and the corresponding file address below its argument disk_path_start. For this
|
||||
the iso_rr_path of the -find command gets replaced by the disk_path_start.
|
||||
E.g.:
|
||||
.br
|
||||
-find / -exec compare /home/thomas
|
||||
-find / -exec compare /home/thomas --
|
||||
.br
|
||||
"update" performs command -update with the found file address as iso_rr_path.
|
||||
The corresponding file address is determined like with above "compare".
|
||||
@ -733,13 +733,27 @@ WARNING: This action is fewly tested and has potential to spoil your ISO image.
|
||||
.br
|
||||
E.g.:
|
||||
.br
|
||||
-find / -exec update /home/thomas
|
||||
-find / -exec update /home/thomas --
|
||||
.br
|
||||
"rm" removes the found iso_rr_path from the image if it is not a directory with
|
||||
files in it. I.e. this "rm" includes "rmdir".
|
||||
.br
|
||||
E.g.:
|
||||
.br
|
||||
-find / -name *.doc -exec rm --
|
||||
.br
|
||||
"rm_r" removes the found iso_rr_path from the image, including whole directory
|
||||
trees.
|
||||
.br
|
||||
E.g.:
|
||||
.br
|
||||
-find /uh/oh -name *private* -exec rm_r --
|
||||
.br
|
||||
"find" performs another run of -find on the matching file address. It accepts
|
||||
the same params as -find, except iso_rr_path.
|
||||
E.g.:
|
||||
.br
|
||||
-find / -name '???' -type d -exec find -name '[abc]*' -exec chmod a-w,a+r
|
||||
-find / -name '???' -type d -exec find -name '[abc]*' -exec chmod a-w,a+r --
|
||||
.br
|
||||
If not used as last command in the line then the argument list
|
||||
needs to get terminated by "--".
|
||||
|
Reference in New Issue
Block a user