git pullコマンドをoutput.logファイルに保存し、フォルダ名の代わりに一意のファイルのフルパスの先頭行を取得したいと思います。
実際の出力
Updating ca4e3bd..82ac123
Fast-forward
build.yaml | 121 ++++------------------------------------------------------
packages/POC1/ns/POC1/testFlow2/flow.xml | 4 ++
packages/POC1/ns/POC1/testFlow2/flow.xml.bak | 4 ++
packages/POC1/ns/POC1/testFlow2/node.ndf | 42 ++++++++++++++++++++
packages/POC2/ns/POC2/testFlow1/flow.xml | 4 ++
packages/POC2/ns/POC2/testFlow1/flow.xml.bak | 4 ++
packages/POC2/ns/POC2/testFlow1/node.ndf | 42 ++++++++++++++++++++
packages/POC2/poc2.txt | 0
8 files changed, 107 insertions(+), 114 deletions(-)
create mode 100644 packages/POC1/ns/POC1/testFlow2/flow.xml
create mode 100644 packages/POC1/ns/POC1/testFlow2/flow.xml.bak
create mode 100644 packages/POC1/ns/POC1/testFlow2/node.ndf
create mode 100644 packages/POC2/ns/POC2/testFlow1/flow.xml
create mode 100644 packages/POC2/ns/POC2/testFlow1/flow.xml.bak
create mode 100644 packages/POC2/ns/POC2/testFlow1/node.ndf
create mode 100644 packages/POC2/poc2.tx
私の注文
awk -F/ '{ print $4 }' out.log1
POC1
POC1
POC1
POC2
POC2
POC2
POC1
POC1
POC1
POC2
POC2
POC2
期待される出力私はこれが好きです
POC1
POC1
POC1
POC2
POC2
POC2
awk -F / 'NF >= 4 {print $4}' out.log1
POC1
POC1
POC1
POC2
POC2
POC2
POC1
POC1
POC1
POC2
POC2
POC2