|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 117 article |
2003-10-31 15:58:06 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
Finding Many Things with One Command |
|
|
$ find . \( -type d -a -exec chmod 771 {} \; \) -o \
\( -name "*.BAK" -a -exec chmod 600 {} \; \) -o \
\( -name "*.sh" -a -exec chmod 755 {} \; \) -o \
\( -name "*.txt" -a -exec chmod 644 {} \; \)
find ·Î µÎ°¡Áö È®ÀåÀÚ¸¦ µ¿½Ã¿¡ Â÷Áñ·Á¸é ´ÙÀ½°ú °°ÀÌ..
find . \( -iname "*.htm*" \) -o \( -name "*.txt" \)
find /home* \( -name "__zbSessionTMP" -exec rm -rf {} \; \) -o \( -
name "now_*connect.*" -a -exec rm -rf {} \; \) -o \( -
name "__now_*.lock" -a -exec rm -rf {} \; \)
2) ¿©·¯ È®ÀåÀÚ¿¡ ´ëÇÏ¿©, ÀÏ°ý ÀÛ¾÷À» ÇÒ°æ¿ì
find ./ \( -type f -iregex '.*\.html?' -o -iregex '.*\.php.?' -o -iregex '.*\.cgi' \) \
-exec perl -p -i -e 's/¿øº»¹®ÀÚ¿/º¯°æ¹®ÀÚ¿/g' {} \;
|
|
Page Loading [ 0.02 Sec ]
SQL Time [ 0 Sec ]
|
|
|