On Tue, Aug 28, 2012 at 08:33:16PM -0700, Eko Prasetya wrote: > Date: Tue, 28 Aug 2012 20:33:16 -0700 > From: Eko Prasetya <eprase...@gmail.com> > > Gunakan diff, dan check return error-nya: > > #!/bin/bash > > diff a.txt b.txt > /dev/null > if [ $? != 0 ]; then > echo "not the same"; > else > echo "the same"; > fi > Sudah bisa. Saya contoh yang Anda kasih.
#!/bin/bash diff resolv.aha resolv.conf > /dev/null if [ $? != 0 ]; then cp resolv.aha resolv.conf; cp wvdial.aha wvdial.conf; usb_modeswitch -vpVP -c usb_modeswitch.conf; else echo ""; fi; TNX Salam, Putra Oesman -- Linux Registered User #146631 ----------------------------- -- Berhenti langganan: linux-programming-unsubscr...@linux.or.id Arsip dan info: http://linux.or.id/milis