Debian Codegraph @

systab/ascii/display/lutasc.sh

raw
1 #!/bin/sh
2 #
3 # @(#)lutasc.sh 19.1 (ESO-IPG) 02/25/03 14:30:09
4 # Bourne shell script
5 # to delete lines 1-3 and last line of ascii table file
6 # and to remove 1. field
7 # K. Banse 980928
8 #
9 sed '1,3d
10 $d' $1 >temp.temp
11 #
12 # now we use awk to throw out the sequence field
13 #
14 awk '{ printf " %s %s %s\n", $2, $3, $4 }' temp.temp >temp.final
15 #
16 mv temp.final $2
17 rm temp.temp