如何在SVN命令行中获取已更改的文件而不是文件夹? 我可以使用此命令获取所有已更改的文件&文件夹:
svn st | findstr "^[ADMR]"
但我不知道如何过滤文件只是因为我不想获取文件夹。
由于
答案 0 :(得分:0)
它不漂亮,但是......
在Unlx / Linux / MacOS X中:
$ svn status | while read status file
do
[ -f "$file" ] && printf "%s\t\%s\n" "$status" "$file"
done
如果您在Kornshell,可以先使用print "$status\t$file" instead of
printf . If you are in BASH, you can simply use
echo instead of
printf , but only if you've turned on
shopt -s xpg_echo`。