> dheche wrote: > >> tinggal ditambahi dg quote >> $ for i in "`find test/ -type f`";do echo "$i";done > > Sama saja dengan atau tanpa quote :-), karena array dari perintah > "`find test/ -type f`" sudah terpisah karena adanya whitespace. > Misalnya "file1 file 2 file dengan spasi" dst. > iya, kalau mau melakukan operasi seperti chmod atau mv atau chown, tak bisa karena hasilnya yang masuk ke $i semuanya, tidak per line. Buktinya, saya test dengan perintah for i in "`find test/ -type f`";do echo "helo $i";done hasilnya : helo test/file1.txt test/file2.txt test/file3.txt test/file dengan spasi1.txt test/file dengan spasi2.txt test/file dengan spasi3.txt
harusnya kan : helo test/file1.txt helo test/file2.txt dst... so solusinya masih mesti pake perintah -exec kalau mau chmod, mv, etc. thx. harris. -- Unsubscribe: kirim email kosong ke [EMAIL PROTECTED] Arsip, FAQ, dan info milis di http://linux.or.id/milis.php Tidak bisa posting? Baca: http://linux.or.id/wiki/index.php?pagename=ProblemMilisDanSolusi http://linux.or.id/wiki/index.php?pagename=TataTertibMilis
