簡單memo一下:
一、下載port tree:
portsnap fetch
二、安裝port tree:
portsnap extract
三、更新port tree:
portsnap update
首次執行的話,要先做fetch extract,以後就隨時都可以fetch update。
portsnap fetch
portsnap extract
portsnap update
“You do not really understand something unless you can explain it to your grandmother.”
― Albert Einstein
如果你能把一個東西解釋到讓你阿嬤明白,才算真正瞭解那個東西。
─愛因斯坦
setlocal EnableDelayedExpansion for /L %%n in (1 1 500) do if "!__cd__:~%%n,1!" neq "" set /a "len=%%n+1" setlocal DisableDelayedExpansion for /r . %%g in (*.log) do ( set "absPath=%%g" setlocal EnableDelayedExpansion set "relPath=!absPath:~%len%!" echo(!relPath! endlocal )