src/utils/qa/dumpEmpty.csh 1.2
1.2 2009/04/11 00:37:03 rhead
Sourced new qaConfig file at the top. Changed -h hgwbeta lines to look for sql host stored in a variable, specified in the new qaConfig file.
Index: src/utils/qa/dumpEmpty.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/dumpEmpty.csh,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/utils/qa/dumpEmpty.csh 23 Dec 2005 18:17:58 -0000 1.1
+++ src/utils/qa/dumpEmpty.csh 11 Apr 2009 00:37:03 -0000 1.2
@@ -1,47 +1,48 @@
#!/bin/tcsh
+source `which qaConfig.csh`
####################
# 05-28-04 Bob Kuhn
#
# Script to remove empty files from a directory
#
####################
set track=""
set refTrack=""
set db=""
set current_dir = $cwd
set uniqFlag=0
if ($#argv == 0) then
# not enough command line args
echo
echo " removes empty files from a directory."
echo
echo " usage: < . | path>"
echo
exit
else
set filepath=$argv[1]
endif
# -------------------------------------------------
# get files:
# set files=`ls -og $filepath | gawk '{print $3, $7}' | grep " 0 "`
# | gawk '{print $7}'`
set files=`ls -1sL $filepath | grep " 0 " | gawk '{print $2}'`
echo
echo "removing empty files:\n"
foreach file ($files)
echo $file
rm $file
end
# ls -1tr $filepath
echo
# echo " most recent last"
# echo