commit b825e6b63c9ad9924ad45ea8ea7972769bdf0ce9 parent a726d0f51852efeb661e4060c8ec04c41d3fd826 Author: Riaz <riaz@riazj.com> Date: Sat, 4 Oct 2025 23:01:59 -0700 Use sed in script examples to add spacing Diffstat:
M | README | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README b/README @@ -45,14 +45,14 @@ The following is a summary of the improvements made: To open the output in a pager, use a function like this: quran() { - /usr/local/bin/quran "$@" | fold -s | "${PAGER:-less}" + /usr/local/bin/quran "$@" | sed '/\[/a\\' | fold -s | "${PAGER:-less}" } or a script like this: #!/bin/sh - /usr/local/bin/quran "$@" | fold -s | "${PAGER:-less}" + /usr/local/bin/quran "$@" | sed '/\[/a\\' | fold -s | "${PAGER:-less}" Use less with -R so that if grep returns an output with color, it can be viewed.