2
我試圖創建一個sh來刪除Xcode的派生日期文件夾的內容。我寫了這個,它關係到所需的文件夾,並列出的內容,但是當我刪除#並嘗試刪除它,比它說使用shell腳本刪除派生數據
"**line 1: =~/Library/Developer/Xcode/DerivedData/: No such file or directory
Desktop Downloads Movies Pictures clitools.dmg
Documents Library Music Public
override r--r--r-- dajkaferenc/staff for Desktop/Christmas Game update/.git/objects/00/8b8026f772525ccff6c3361ecc6f3eb43d0d82?** "
$DIR="~/Library/Developer/Xcode/DerivedData/"
cd $DIR
ls
#rm -r -- "$DIR"*