From: Harald Hoyer Date: Tue, 3 Jul 2012 16:23:59 +0000 (+0200) Subject: lsinitrd.sh: get rid of awk call X-Git-Tag: 021~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8caa679e06e779a04e2353cfeab80de47477d2a;p=thirdparty%2Fdracut.git lsinitrd.sh: get rid of awk call --- diff --git a/lsinitrd.sh b/lsinitrd.sh index f27f75589..fc4b8b038 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -63,7 +63,7 @@ if [[ $# -eq 2 ]]; then exit $? fi -echo "$image: $(du -h $image | awk '{print $1}')" +echo "$image: $(du -h $image | while read a b; do echo $a;done)" echo "========================================================================" $CAT "$image" | cpio --extract --verbose --quiet --to-stdout 'lib/dracut/dracut-*' 2>/dev/null echo "========================================================================"