2012-08-15 54 views
0

此腳本輸出稀疏磁盤映像。我想將圖像放在系統的正確位置,但不知道如何給它定位。我不想在創建後移動它。Bash輸出到位置

#!/bin/bash 
hostname=`hostname -s` 
mac=`ifconfig en0 | grep ether | tr -d ":" | awk {'print $2'}` 
hdiutil create -size 300g -type SPARSE -fs HFS+ "$hostname"_"$mac" 

回答

0
/Volume/location/"$hostname"_"$mac" 

工作