Send output of grep to /dev/null

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 22:09:09 +01:00
parent f7d5e1167b
commit bdbb1cbf61

4
qsgen2
View File

@ -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