/
githubmirror
/
etcd
Обзор
Документация
Войти
/
githubmirror
/
etcd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/etcd-dump-logs/testdecoder/decoder_correctoutputformat.sh
10 строк
216 B
Piotr Tabor
*: Convert tabulators to whitespaces in bash scripts.
26 окт 2020, 12:59
26 окт 2020, 12:59
0ba16d8
Код
Авторство
О чём код?
#!/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}"