Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /data/e/7/e76990b9-3372-4d88-8089-fce36e16744a/webperfection.net/sub/rady-nosu/wp-content/plugins/seo-ultimate/modules/class.su-module.php on line 1195
Find tutorial - logické funkcie a exclude

February 23, 2012 | In: Nepotriedené

find pre pokrocilych

Pokročilé možnosti find ako viac typov suborov alebo exclude

keď chcete nájisť viac typov suborov a zapísať zoznam do suborov (php_files, js_files)

find ./ -type f \( -name \*.php -fprint php_files , -name \*.js -fprint js_files \)

nájdi “to” alebo “to” = teda vypíše php aj html fajly

find ./ -iname '*.php' -or -iname '*.html'
find . -type f \( -iname "*.c" -or -iname "*.asm" \)

najdi to alebo to a excludni svn = moc to zmysel nemá ale vidime ako sa robí exclude

find ./ -iname '*.php' -or -iname '*.html' -and ! -iname '.svn'

Share This:

Comments are closed.