]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: simplify grep pipe sed interactions
authorDarrick J. Wong <djwong@kernel.org>
Fri, 28 Oct 2022 17:42:10 +0000 (10:42 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 30 Oct 2022 10:39:20 +0000 (18:39 +0800)
commit1153cd05b98768ba0d26c102232f0e1fc2fb7d74
tree0c6d67fa424cc01af330aa6caddf5da3bdce0cc7
parent898ace3b1835553a379822df7386f27961c9cdb3
common: simplify grep pipe sed interactions

Zorro pointed out that the idiom "program | grep | sed" isn't necessary
for field extraction -- sed is perfectly capable of performing a
substitution and only printing the lines that match that substitution.
Do that for the common helpers.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/ext4
common/populate
common/xfs