更新时间:2023-12-01 09:48:40
您可以使用 削减
访问第二场:
You can use cut
to access the second field:
cut -f2
编辑:
对不起,没有意识到SVN并不在它的输出使用制表符,所以这是一个有点用处。您可以定制剪切
来的输出,但它是一个有点脆弱的 - 像削减-c 10 -
将工作,但精确值将取决于您的安装。
Sorry, didn't realise that SVN doesn't use tabs in its output, so that's a bit useless. You can tailor cut
to the output but it's a bit fragile - something like cut -c 10-
would work, but the exact value will depend on your setup.
另一个选择是一样的东西: SED'S / \\ s \\ + //
Another option is something like: sed 's/.\s\+//'