fork(1) download
  1. #!/bin/bash
  2.  
  3.  
  4. while read -n 1 line
  5. do
  6. dec="$dec$(printf '%d' \'"$line")"
  7. done <<< "aaaa"
  8. printf "%s\n" "$dec"
  9.  
  10. while read -n 2 line
  11. do
  12. ascii="$ascii$(printf '%b' $(printf '\\%03o' "$line"))"
  13. done <<< "97979797"
  14. printf "%s\n" "$ascii"
Success #stdin #stdout #stderr 0.01s 5424KB
stdin
Standard input is empty
stdout
979797970
aaaa
stderr
./prog.sh: line 12: warning: command substitution: ignored null byte in input