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

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 191 article 2005-10-31 13:27:55
NickName   Ç®ºñ´©
Subject   ÆÄÀϸí ÀϺΠÀÏ°ý º¯°æ ½ºÅ©¸³ ÂÊÁö
for i in $(ls) ; do j=$(echo $i |grep "ºØºØ" | sed -e 's/ºØºØ/»×»×/g') ; 
if [ $j ] ; then mv $i $j ; fi ; done


---------------------------

xxx1               ->   ddd1
xxx2                    ddd2
xxx3-xxx1               ddd3-ddd1
xxx4                    ddd4

for i in $(find ./ -type d -name "xxx[0-9]" ) ; do filename=$(echo $i| 
sed -e 's|xxx\([0-9]\)|ddd\1|g') ; mv $i $filename ; done

ȤÀº

for i in $(find ./ -type d -name "xxx[0-9]"; do mv $i ${i/#xxx/ddd}; done

ȤÀº 

rename xxx ddd xxx* [¿£ÅÍ]
-> xxx3-xxx1 °°Àº ÆÄÀÏÀº ¾ÕºÎºÐ¸¸ º¯°æµÊ
Regist Addr [ 211.111.244.137 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.03 Sec ] SQL Time [ 0 Sec ]

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

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