我使用下面的ssh命令获取ids列表。现在我想
可以擦或剪上面的东西吗?
ssh -p 29418 company.com gerrit query --commit-message --files --current-patch-set \
status:open project:platform/code branch:master |
grep refs | cut -f4 -d'/'产出:-
231222
231221
231220
231219
230084
229092
228673
228635
227877
227759
226138
226118
225817
225815
225246
223554
223527
223452
223447
226137发布于 2013-01-25 23:58:57
... | awk '$1 > max' max=8888 | grep -v -F -f ids_ignore.txt或者,如果你想用awk做这一切:
... | awk 'NR==FNR{ no[$1]++ }
NR!=FNR && $1 > max && ! no[$1]' max=NNN ids_ignore.txt -https://stackoverflow.com/questions/14532190
复制相似问题