Ronny Haryanto wrote:
On Sat, Jul 10, 2004 at 04:55:37PM +1000, Ronny Haryanto wrote:

Ini versi yg lebih error-tolerant:

#!/bin/sh
# Ganti isi mv_opts seperlunya. Baca 'man mv'.
mv_opts="-v -i"
# Biasakan pake quotes. Ada filename yg mengandung spasi.

Selain quotes, juga biasakan pakai '--'; kalau ada nama file yang dimulai dengan '-', scriptnya bisa break karena dianggap option switch...

mv ${mv_opts} -- "$old" "$new"

Terutama buat kolektor ogg & mp3 files...

--
+-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+
| Agus Budy Wuysang                                              |
| Phone: +62-21-6544942                 Mobile: +62-816-1972-051 |
+---------------| http://supes.agreatserver.com/ |---------------+

--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php



Kirim email ke