#!/bin/sh
p1="/Applications/World of Warcraft"
p2=$p1/WoWCopy
mkdir "$p2"
ln -s "$p1/Data" "$p2/Data"
cp "$p1/realmlist.wtf" "$p2/realmlist.wtf"
ditto -X "$p1/World of Warcraft.app" "$p2/World of Warcraft.app"
Copy/paste those 7 simple lines into a new TextEdit doc, and then save the file in your home directory as "wowcopy.sh", i.e. /Users/YourName/wowcopy.sh should be the path to the script document.
Open Terminal and type the following two commands:
chmod +x ~/wowcopy.sh
~/wowcopy.sh
: No such file or directory
cd /Applications/World of Warcraft
-bash: cd: /Applications/World: No such file or directory
mbp:~ fredrik$ ls
Desktop Downloads Movies Pictures Sites
Documents Library Music Public wowcopy.sh
mbp:~ fredrik$ ~/wowcopy.sh
: No such file or directory
mbp:~ fredrik$ wowcopy.sh
-bash: wowcopy.sh: command not found
mbp:~ fredrik$
~/wowcopy.sh
sh -v ~/wowcopy.sh
mbp:~ fredrik$ sh -v ~/wowcopy.sh
#!/bin/sh
p1="/Applications/World of Warcraft"
: command not foundopy.sh: line 2:
p2=$p1/WoWCopy
: command not foundopy.sh: line 3:
mkdir "$p2"
mkdir: .: No such file or directory
mkdir: \r: File exists
ln -s "$p1/Data" "$p2/Data"
ln: \r/Data: File exists
ln: \r/Data: File exists
cp "$p1/realmlist.wtf" "$p2/realmlist.wtf"
cp: /realmlist.wtf: No such file or directory
cp: /realmlist.wtf: No such file or directory
ditto -X "$p1/World of Warcraft.app" "$p2/World of Warcraft.app"
ditto: can't get real path for source
ln -s "$p1/Interface" "$p2/Interface"
ln: /Interface: File exists
mbp:~ fredrik$
#!/bin/sh
p1="/Applications/World\ of\ Warcraft"
p2=$p1/WoWCopy
mkdir "$p2"
mkdir: /Applications/World\ of\ Warcraft\r: No such file or directory
ln -s "$p1/Data" "$p2/Data"
ln: /Applications/World\ of\ Warcraft\r/WoWCopy\r/Data\r: No such file or directory
cp "$p1/realmlist.wtf" "$p2/realmlist.wtf"
cp: /Applications/World\ of\ Warcraft\r/realmlist.wtf: No such file or directory
ditto -X "$p1/World\ of\ Warcraft.app" "$p2/World\ of\ Warcraft.app"
ditto: can't get real path for source
ln -s "$p1/Interface" "$p2/Interface"
ln: /Applications/World\ of\ Warcraft\r/WoWCopy\r/Interface: No such file or directory
mbp:~ fredrik$
Registrerte brukere: Google [Bot]