bash: shortest way to get n-th column of output

后端 未结 8 1988
春和景丽
春和景丽 2020-11-28 03:29

Let\'s say that during your workday you repeatedly encounter the following form of columnized output from some command in bash (in my case from executing svn st

8条回答
  •  被撕碎了的回忆
    2020-11-28 03:54

    If you are ok with manually selecting the column, you could be very fast using pick:

    svn st | pick | xargs rm
    

    Just go to any cell of the 2nd column, press c and then hit enter

提交回复
热议问题