Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 25 of 56) sorted by relevance

123

/coreutils/tests/wc/
Dwc-files0.sh20 print_ver_ wc
27 wc --files0-from=names > out || fail=1
39 wc --files0-from=- < names > out || fail=1
47 printf '%s\0' "$nlname" | wc --files0-from=- > out || fail=1
52 truncate -s1G wc.big || framework_failure_
53 touch wc.small || framework_failure_
54 printf '%s\0' wc.big wc.small | wc -c --files0-from=- >out || fail=1
56 1073741824 wc.big
57 0 wc.small
Dwc-proc.sh20 print_ver_ wc
26 wc -c < copy > exp1 || framework_failure_
28 wc -c < $file > out1 || fail=1
37 wc -c no_read do_read > out || fail=1
47 { wc -c; wc -c; } < no_read > out || fail=1
48 { wc -c; wc -c; } < do_read >> out || fail=1
61 timeout 10 wc -c do_read || fail=1
Dwc-total.sh20 print_ver_ wc
27 returns_ 1 wc --total 2b 2w > out || fail=1
29 wc --total=never 2b 2w > out || fail=1
36 wc --total=only 2b 2w > out || fail=1
42 wc --total=always 2b > out || fail=1
48 returns_ 1 wc --total=only -c big big big big big big big big \
56 wc --total=never -c big big big big big big big big || fail=1
Dwc-nbsp.sh20 print_ver_ wc printf
30 test $(env printf "=$char=" | wc -w) = 2 || fail=1
Dwc-parallel.sh21 print_ver_ wc
31 (find tmp tmp tmp -type f | xargs -n2000 -P2 wc 2>err) |
/coreutils/tests/uniq/
Duniq-collate.sh32 test $(LC_ALL=$LOCALE_FR_UTF8 uniq < in | wc -l) = 2 || fail=1
39 test $(LC_ALL=$LOCALE_FR_UTF8 uniq < in | wc -l) = 2 || fail=1
42 test $(LC_ALL=ko_KR.utf8 uniq < in | wc -l) = 2 || fail=1
50 test $(LC_ALL=en_US.utf8 uniq < in | wc -l) = 2 || fail=1
53 test $(LC_ALL=en_US.utf8 uniq < in | wc -l) = 2 || fail=1
61 test $(LC_ALL=$LOCALE_FR_UTF8 uniq < in | wc -l) = 2 || fail=1
/coreutils/tests/misc/
Dtee.sh47 test $(wc -l < err) = 2 || { cat err; fail=1; }
57 test $(wc -l < err) = 1 || { cat err; fail=1; }
63 test $(wc -l < err) = 1 || { cat err; fail=1; }
77 test $(wc -l < err) = 0 || { cat err; fail=1; }
115 test $(wc -l < err) = 1 || { cat err; fail=1; }
120 test $(wc -l < err) = 0 || { cat err; fail=1; }
125 test $(wc -l < err) = 1 || { cat err; fail=1; }
131 test $(wc -l < err) = 1 || { cat err; fail=1; }
137 test $(wc -l < err) = 1 || { cat err; fail=1; }
142 test $(wc -l < err) = 0 || { cat err; fail=1; }
/coreutils/tests/od/
Dod-multiple-t.sh26 test $(wc -c < in) -eq 48 || framework_failure_
33 linewidth=$(head -n1 out-raw | wc -c)
34 linecount=$(wc -l < out-raw)
35 echo $format1 $format2 $(wc -c < out-raw) >> out
Dod-j.sh26 bytes=$(wc -c < copy) || framework_failure_
/coreutils/tests/ls/
Dabmon-align.sh40 while read mon; do echo "$mon" | LC_ALL=$LOC wc -L; done |
41 uniq | wc -l
43 n_dupes=$(echo "$months" | sort | uniq -d | wc -l)
Ddired.sh48 dired_count=$(printf '%s\n' $dired_values | wc -l)
49 expected_count=$(printf '%s\n' $expected_files | wc -l)
/coreutils/tests/shuf/
Dshuf.sh83 c=$(wc -l < exp) || framework_failure_
114 c=$(wc -l < exp) || framework_failure_
120 c=$(wc -l < exp) || framework_failure_
144 c=$(wc -l < exp) || framework_failure_
150 c=$(wc -l < exp) || framework_failure_
156 c=$(wc -l < exp) || framework_failure_
Dshuf-reservoir.sh49 sort -un | wc -l) || framework_failure_
50 LINES=$(wc -l < "out_${INPUT_LINES}_${OUTPUT_LINES}") || framework_failure_
/coreutils/tests/du/
Dfiles0-from-dir.sh20 print_ver_ du wc
30 for prog in du wc; do
/coreutils/tests/stty/
Dstty.sh87 n_ioctl1=$(wc -l < log1) || framework_failure_
89 n_ioctl2=$(wc -l < log2) || framework_failure_
94 output_width=$(COLUMNS="$W" stty -a | wc -L)
/coreutils/tests/df/
Dskip-duplicates.sh157 test $(wc -l <out) -eq $(expr 1 + $unique_entries) || { fail=1; cat out; }
162 test $(wc -l <out) -eq $(expr 2 + $unique_entries - $elide_remote) ||
167 test $(wc -l <out) -eq $(expr 1 + $unique_entries) || { fail=1; cat out; }
182 test $(wc -l <out) -eq $total_fs || { fail=1; cat out; }
189 test $(wc -l <out) -eq 3 || { fail=1; cat out; }
Dover-mount-device.sh53 test $(wc -l < out) = 2 || fail=1
/coreutils/tests/groups/
Dgroups-process-all.sh24 test $(wc -l < err) = 3 || fail=1
/coreutils/man/
Dwc.x2 wc \- print newline, word, and byte counts for each file
/coreutils/tests/factor/
Dfactor-parallel.sh30 nprimes=$(seq 1e6 | odd | split -nr/4 --filter='factor' | primes | wc -l)
/coreutils/scripts/git-hooks/
Dpre-commit32 LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
/coreutils/src/
Dwc.c199 iswnbspace (wint_t wc) in iswnbspace() argument
202 && (wc == 0x00A0 || wc == 0x2007 in iswnbspace()
203 || wc == 0x202F || wc == 0x2060); in iswnbspace()
304 wc (int fd, char const *file_x, struct fstatus *fstatus, off_t current_pos) in wc() function
633 return wc (STDIN_FILENO, file, fstatus, -1); in wc_file()
645 bool ok = wc (fd, file, fstatus, 0); in wc_file()
/coreutils/tests/head/
Dhead-pos.sh41 (head -n-$n_lines>/dev/null; wc -l) < in2 > n
/coreutils/tests/tail/
Dend-of-device.sh45 test $(wc -c < end1) = 1024 || fail=1
/coreutils/tests/printf/
Dprintf-surprise.sh81 n_out=$(wc -c < out)

123