From 05f068d039c5a840f2e6ae05c3ae8831a4a24e67 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 3 Sep 2016 02:13:49 +0100 Subject: [PATCH] added progress indicator --- lgsm/functions/command_dev_detect_glibc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_dev_detect_glibc.sh b/lgsm/functions/command_dev_detect_glibc.sh index 073da2cd7..c039e44cb 100644 --- a/lgsm/functions/command_dev_detect_glibc.sh +++ b/lgsm/functions/command_dev_detect_glibc.sh @@ -22,10 +22,13 @@ elif [ -f "${filesdir}" ]; then fi echo "" +files=$(find ${filesdir} | wc -l) find ${filesdir} -type f -print0 | while IFS= read -r -d $'\0' line; do objdump -T $line 2>/dev/null|grep -oP "GLIBC[^ ]+" >>"${lgsmdir}/tmp/detect_glibc.tmp" + echo -n "$i / $files" $'\r' + ((i++)) done - +echo "" cat "${lgsmdir}/tmp/detect_glibc.tmp"|sort|uniq|sort -r --version-sort rm "${lgsmdir}/tmp/detect_glibc.tmp" \ No newline at end of file