On Wed, 28 Sep 2005, Joshua Jackson wrote: >>> Script berikut akan mencari berkas-2 berektensi >>> .mp3, dan kemudian >>> menghapusnya: >>> >>> find nama-direktori -name '*.mp3'|xargs rm >>> >>> >> >> >> tp koq ga bisa di hapus klo nama filenya ada spasinya, >> misal Cinta Bersemi.mp3, maka akan muncul pesen sbb: >> >> rm: cannot remove `Cinta': No such file or directory >> rm: cannot remove `Bersemi.mp3': No such file or directory > Coba nama filenya di double quote. >
gunakan fasilitas -print0 pada find lalu tangkap dengan xargs -0, sehingga nama file yg ada spasinya gak masalah. find direktori -iname '*.mp3' -print0 | xargs -0 rm -v -iname = in-sensistive name -print0 = print with null terminated string of the name xargs -0 = input is null terminated rm -v = be vebose -- |===[ Yudhi Kusnanto ]==============[ +62 811 292 184 ]===| |===[ STMIK Akakom ]================[ +62 274 486 438 ]===| |===[ Jl. Janti no. 143 Yogyakarta 55981 ]================| |===[ Indonesia ]===[ http://akakom.ac.id/~yudhi/ ]=======| ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/0XFolB/TM --------------------------------------------------------------------~-> "This is my way being a linuxer..." http://jogja.linux.or.id http://jogja.linux.or.id/wiki/ Untuk berhenti langganan silahkan kirim email kosong ke: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/jogja-linux/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
