WBFS disk-cloner script

Obtain the wbfs program from the interwebs and make an appropriate link or path to it. Now this incredible script should clone the drives, slooowly but it’ll get there!

#!/bin/bash
SOURCE="/dev/disk1s2"
DEST="/dev/disk2s2"
STXT="source.txt"
DTXT="dest.txt"

EXT=~/Mine\ Programmer
PATHWBFS=$EXT/WBFS\ for\ MacOS\ X\ v1.2/WBFS\ for\ MacOS\ X.app/Contents/Resources/
PATH=$PATH:$PATHWBFS


function getList()  {
	LIST=`wbfs -p $1 ls 2>$2`
         sort $2 > $2".sort"
	mv $2".sort" $2
}
getList $SOURCE $STXT
getList $DEST $DTXT

LIST=`diff source.txt dest.txt|sed "s/