3
0

sed-branch-conditional 102 B

123456789101112131415
  1. busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF
  2. a
  3. b
  4. c
  5. EOF
  6. cmp -s output - <<EOF
  7. 1
  8. 1
  9. b
  10. b
  11. b
  12. c
  13. c
  14. c
  15. EOF