From b3416142f2a676acbfca0738ea386d40bef74313 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Sat, 11 Oct 2008 23:31:22 +0200 Subject: Removed all "cat | grep", with grep, awk and sed. --- scripts/live-bottom/08persistence_excludes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/live-bottom') diff --git a/scripts/live-bottom/08persistence_excludes b/scripts/live-bottom/08persistence_excludes index bc5c4d8..b7aac92 100755 --- a/scripts/live-bottom/08persistence_excludes +++ b/scripts/live-bottom/08persistence_excludes @@ -35,7 +35,7 @@ fi # live-initramfs script -dirs="$(cat /root/etc/live-persistence.binds | grep -v '^#.*$' | grep -v '^ *$' | tr '\n' '\0')" +dirs="$(sed -e '/^ *$/d' -e '/^#.*$/d' /root/etc/live-persistence.binds | tr '\n' '\0')" if [ -z "${dirs}" ] then exit 0 -- cgit v1.2.3