On Fri, Aug 03, 2007 at 07:20:17PM +0000, Agus Budy Wuysang wrote:
> 
> --- BEG original message quote ---
> Popo wrote:
> 
> ada yang punya contoh script untuk mencari file yang mempunyai spasi di
> folder misalnya : /home, kemudian merubah spasi nya dengan_.
> 
> --- END original message quote --- 
> 
> while find /home -type f -name \*\ \* -print0 > /tmp/tmpf; do xargs -r0 
> rename ' ' '_' < /tmp/tmpf; done; rm /tmp/tmpf
> 
> Ini cuma salah satu jalan yang sebenarnya kurang efisien & menggunakan 
> temporary file.
> 

yg diatas kok ga bisa jalan ya mas, tetapi aku coba cari2 lagi di
google, ketemu spt ini, & jalan dgn baik :

find /home -type f -exec rename 'y/\ /\_/' {} \;

terima kasih.

salam,
Popo










This e-mail message may contain legally privileged and/or confidential 
information. If you are not the intended recipient(s), or the employee or agent 
responsible for delivery of this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution or copying of this e-mail 
message is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete this e-mail message from your 
computer.



-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke