diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2018-05-03 12:15:52 -0400 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-05-04 04:51:59 +0000 |
commit | bef654f48c14bfd7ce20702edff41052f6f54bdc (patch) | |
tree | 2d1caa2b23e5d8115103c18f1d661e5162be8d38 /libglusterfs/src/globals.c | |
parent | 3aead2facfdb0dc580a4bd0556e63bb46b19b01b (diff) |
use awk to get a specific line from the output instead of cut
cut -d$'\n' is not separating the xattrs shown as part of getfattr output.
Hence use awk to get the nth line of getfattr output for nth iteration
in the for loop.
Change-Id: I1a96cd3f72f4f407f9a783375f78d9a69d5d3885
fixes: bz#1574606
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'libglusterfs/src/globals.c')
0 files changed, 0 insertions, 0 deletions