src/utils/qa/copyExtSeqRows.csh 1.10
1.10 2009/05/21 23:41:41 ann
quieting more egreps
Index: src/utils/qa/copyExtSeqRows.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/copyExtSeqRows.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/utils/qa/copyExtSeqRows.csh 21 May 2009 23:18:26 -0000 1.9
+++ src/utils/qa/copyExtSeqRows.csh 21 May 2009 23:41:41 -0000 1.10
@@ -108,9 +108,9 @@
# the $db name. In some cases, the file might exist in the hgFixed database.
# NOTE: This is a potential problem in the rare case where
# the db name (or hgFixed) is *not* embedded in the file path.
foreach oneFile ( $files )
- ls -l $oneFile | egrep "$db|hgFixed" > /dev/null
+ ls -l $oneFile | egrep -q "$db|hgFixed"
if ( $status ) then
echo "\n ERROR: one or more of the file name(s) you provided either doesn't\
exist or the file path doesn't contain the database name you\
provided. Are you sure you gave the correct file name and path?\
@@ -125,9 +125,9 @@
### START SETUP RUN
if ( 'setup' == $run ) then
# check that the fileName(s) end in either .maf, .fa or .fasta (very rare)
foreach oneFile ( $files )
- ls $oneFile | egrep 'maf$|fa$|fasta$' > /dev/null
+ ls $oneFile | egrep -q 'maf$|fa$|fasta$'
if ( $status ) then
echo "\n ERROR: one or more of the file(s) in your list are not of the"
echo " expected type. Typical file types in the extFile table end in "
echo " .maf or .fa (or sometimes .fasta)\n"