我有以下命令,其输出如下所示,有没有办法编写一个 awk 命令来解析当前输出并只打印下面“预期输出”字段中显示的那些?
ssh -p 29418 company.com gerrit query --commit-message --files --current-patch-set status:open project:platform/vendor/company/radio branch:master |grep refs
电流输出:-
ref: refs/changes/26/206026/1
ref: refs/changes/25/206025/1
ref: refs/changes/22/206022/1
期望的输出:-
206026
206025
206022