#!/bin/perl #perl script to filter disambig output and only print lines about #aromatics: for use with D2O noesy #Melanie Nelson #5/18/99 if ($#ARGV != 0) { $prg_name = $0; $prg_name = `basename $prg_name`; chomp ($prg_name); die<outputfile] EODIE } open (INFILE, $ARGV[0]) || die "could not open input file, $ARGV[0]\n"; while (){ $line = $_; chomp; @line = split; if ($line[0] eq '#'){ print "$line"; } if ($line[1] eq 'TYR' || $line[1] eq 'PHE'){ print "$line"; } }