summaryrefslogtreecommitdiffstats
path: root/funtools/txt/crnl
blob: 0178cad113f3c2b5a611a7e6d653a9aad76ad366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

case $# in
  0)
  tr '\015' '\012'
  break;;

  1)
  tr '\015' '\012' < $1
  break;;

  2)
  tr '\015' '\012' < $1 > $2
  break;;

  *)
  echo "args: 0 (stdin/stdout), 1 (ifile/stdout), or 2 (ifile/ofile)"
  exit 1;;
esac