File: unblock

package info (click to toggle)
pfe 0.9.14-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,436 kB
  • ctags: 2,439
  • sloc: ansic: 14,095; sh: 438; asm: 113; makefile: 70; perl: 13
file content (16 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# unblock ---	converts forth block files to text files.
#
# (duz 23May94)
#

ddopts="conv=unblock bs=64 cbs=64"

case $# in
  0) dd $ddopts ;;
  1) dd if=$1 $ddopts ;;
  2) dd if=$1 of=$2 $ddopts ;;
  *) name=`basename $0`
     echo "$name: Usage $name [input [output]]" ;;
esac