Skip to content

Commit

Permalink
docs: added example in help
Browse files Browse the repository at this point in the history
  • Loading branch information
pystardust committed Apr 13, 2021
1 parent 8df44e2 commit 85eee56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shup
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Usage () {
-r raw: last filter tag will not be shown
-t text: no tags will be shown
-o "string" specify output indentation
HTML must be provided as stdin
FILTER FORMAT: "<tagname>" or "<tagname>[<search string>]"
the search string should be present in the tag line
Expand All @@ -34,6 +35,10 @@ Usage () {
The string could be present anywhere inside the tags body <.>
Patterns can be specified in the string using shell patterns
shup "div[Qy?*[!h]f]"
Example with multiple filters
curl -s "www.gnu.org" | shup -r "body" "div[inner]" "ul" "li[[pP]hilo]" "a"
When no filters applied, shup will only format the HTML
EOF
unset _HelpLine
Expand Down

0 comments on commit 85eee56

Please sign in to comment.