Debian Codegraph @

systab/ascii/display/ittasc.sh

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