Send output of grep to /dev/null
This commit is contained in:
parent
f7d5e1167b
commit
bdbb1cbf61
4
qsgen2
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user