From: hackbard Date: Sat, 1 Feb 2003 21:10:51 +0000 (+0000) Subject: more save kern num parsing X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ad15035ea446172c8745a3eff41fc5b9a19f972;p=scripts%2Fscripts.git more save kern num parsing --- diff --git a/backup.sh b/backup.sh index 256b1d9..d40470d 100755 --- a/backup.sh +++ b/backup.sh @@ -37,7 +37,7 @@ fi # set kernel version(s) to store their .config if [ -d /usr/src/linux ] ; then - kernel_num=`ls /usr/src/ | grep 'linux-' | awk -F- '{ print $2 }'` + kernel_num=`ls /usr/src/ | grep '^linux-' | sed 's/linux-//g'` fi