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})"
|
local page_content="$(<${pages_in_array})"
|
||||||
|
|
||||||
# Grab the title from the Page
|
# 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}"
|
echo "Page Title: ${page_title}"
|
||||||
exit
|
exit
|
||||||
|
|
||||||
# Remove the #title line from the buffer. No longer needed.
|
# 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}"
|
echo "${page_content}"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user