find-Kommando
In der Manpage zu find heißt es:
find . -type f -exec file '{}' \;
Runs ‘file’ on every file in or below the current directory. Notice
that the braces are enclosed in single quote marks to protect them from
interpretation as shell script punctuation. The semicolon is similarly
protected by the use of a backslash, though single quotes could have
been used in that case also.
Dass man das Semikolon escapen muss, damit es nicht als Befehlstrenner
erkannt wird verstehe ich ja. Aber wozu denn {} in einfachen Anführungszeichen
setzen?
Was ist "shell script punctuation"? Hat das was mit der Mustererzeugung
mit den geschweiften Klammern zu tun?
Danke
Rudolf
--
http://rettedeinefreiheit.de/
Gegen Freiheitsberaubung in Deutschland
Reply to: