經過git-bash一句話得到當前目錄的所有csproj文件絕對路徑

#!/usr/bin/env bash
find -iname *.csproj -exec cygpath --windows `readlink -f {}` \; | tee ${0%.sh}.txt

 

保存爲 csprojfilelist.sh,注意換行符使用LF,若是git-bash關聯了sh文件,直接雙擊就能夠獲得csprojfilelist.txt文件。git

相關文章
相關標籤/搜索