B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-28 Saturday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  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' {} \;
Regist Addr [ 211.111.241.3 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®