File: decoder_correctoutputformat.sh

package info (click to toggle)
etcd 3.5.16-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,892 kB
  • sloc: sh: 3,139; makefile: 478
file content (10 lines) | stat: -rwxr-xr-x 216 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
while read line
do
  LEN=$(echo ${#line})
  if [ $LEN -ge 20 ]; then
    echo "OK|$line" | tr 1234567890 abcdefghij
  else
    echo "ERROR|$line" | tr 1234567890 abcdefghij
  fi
done < "${1:-/dev/stdin}"