From bdbb1cbf61ad8fe218ff1258ed5141b50f4997bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 22:09:09 +0100 Subject: [PATCH] Send output of grep to /dev/null --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index abe389e..d4f0a31 100755 --- a/qsgen2 +++ b/qsgen2 @@ -308,13 +308,13 @@ function _pages() { local page_content="$(<${pages_in_array})" # Grab the title from the Page - page_title=$( grep '#title' ${page_content} | head -2 | cut -d= -f2 ) + page_title=$( grep '#title' ${page_content} | head -2 | cut -d= -f2 > /dev/null ) echo "Page Title: ${page_title}" exit # Remove the #title line from the buffer. No longer needed. - page_content=$( grep -v '#title' ${page_content} ) + page_content=$( grep -v '#title' ${page_content} > /dev/null ) echo "${page_content}" exit