Commit c12aa6a5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

estrlist: improve help

parent 8cb491ae
......@@ -111,10 +111,13 @@ help()
echo "Usage: $0 <command> [args]"
echo "Commands:"
echo "strip_spaces [args] - remove spaces between words"
echo "filter_stip_spaces - remove spaces from words from standart input"
echo "filter_strip_spaces - remove spaces from words from standart input"
echo "reg_remove <PATTERN> [word list] - remove words containing a match to the given PATTERN (grep notation)"
echo "exclude <list1> [list2] - print list2 words contains also in list1"
echo "reg_exclude <PATTERN> [word list] - print only words not matched with PATTERN"
echo "reg_exclude <PATTERN> [word list] - print only words not matched with PATTERN"
echo "union [word list] - sort and remove duplicates"
echo "list [word list] - just list word by line"
echo "count [word list] - print word count"
echo
echo "Examples:"
echo "\$ $0 reg_remove \"1.\" \"11 12 21 22\""
......@@ -123,6 +126,10 @@ help()
$0 exclude "1 3" "1 2 3 4"
echo "\$ $0 reg_exclude \"22 1.\" \"11 12 21 22\""
$0 reg_exclude "22 1." "11 12 21 22"
echo "\$ $0 union \"1 2 2 3 3\""
$0 union "1 2 2 3 3"
echo "\$ $0 count \"1 2 3 4 10\""
$0 count "1 2 3 4 10"
}
COMMAND="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment