Lines Matching +full:- +full:wc
3 [ -f testing.sh ] && . testing.sh
14 testing "wc" "wc >/dev/null && echo yes" "yes\n" "" ""
15 testing "empty file" "wc" " 0 0 0\n" "" ""
16 testing "standard input" "wc" " 1 3 5\n" "" "a b\nc"
17 testing "standard input -c" "wc -c" "5\n" "" "a b\nc"
18 testing "standard input -cl" "wc -cl" " 1 5\n" "" "a b\nc"
19 testing "-c" "wc -c file1" "26 file1\n" "" ""
20 testing "-l" "wc -l file1" "4 file1\n" "" ""
21 testing "-w" "wc -w file1" "5 file1\n" "" ""
22 testing "one file" "wc file1" "4 5 26 file1\n" "" ""
23 testing "multiple files" "wc input - file1" \
24 …" 1 2 3 input\n 0 2 3 -\n 4 5 26 file1\n 5 …
26 #Tests for wc -m
27 echo -n " " > file1
28 for i in $(seq 1 512); do echo -n "üüüüüüüüüüüüüüüü" >> file1; done
29 testing "-m" "wc -m file1" "8193 file1\n" "" ""
30 testing "-m 2" 'cat "$FILES/utf8/test2.txt" | wc -m' "169\n" "" ""
31 echo -n " " > file1
32 testing "-mlw" "wc -mlw input" "1 2 11 input\n" "hello, 世界!\n" ""