summaryrefslogtreecommitdiffstats
path: root/funtools/txt/nlcr
blob: a623bbd898044f993d798c35491b30200c336969 (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 '\012' '\015'
  break;;

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

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

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