File: 007-bytes

package info (click to toggle)
pv 0.9.6-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 688 kB
  • ctags: 241
  • sloc: ansic: 2,003; sh: 471; makefile: 51; perl: 23
file content (10 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# Check that the byte counter counts.

dd if=/dev/zero bs=100 count=1 2>/dev/null \
| LANG=C $PROG -f -b >/dev/null 2>$TMP1
NUM=`tr '\r' '\n' < $TMP1 | tr -d ' '`
test "$NUM" = "100B"

# EOF