想快速列出透過 Mac App Store 安裝的所有應用,不必逐一在 App Store 查看。一條 find + sed 管線指令即可搞定。

find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print | sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##'
Contents/_MASReceipt/receipt 憑證檔。find 以此為特徵定位 App 套件路徑 (-maxdepth 4 限制深度避免掃描過久)。sed 移除路徑前綴與憑證尾部,僅保留 App 名稱 (如 Xcode.app)。find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print | sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##' > ~/macapps.txt
ls /Applications/
更複雜查詢請參考 man find、man sed。此指令對稽核授權軟體、重灌前備份清單極為實用。