Difference between revisions of "Template:Snippets/Deleting removed files"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with " cd $LJHOME for i in `bin/cvsreport.pl -n -1`; do echo "Removing $i" && rm $i; done")
 
(Replacing backticks with another way of doing the same thing, after some confusion was had)
 
Line 1: Line 1:
 
  cd $LJHOME
 
  cd $LJHOME
  for i in `bin/cvsreport.pl -n -1`; do  
+
  for i in $(bin/cvsreport.pl -n -1); do  
 
     echo "Removing $i" && rm $i;  
 
     echo "Removing $i" && rm $i;  
 
  done
 
  done

Latest revision as of 12:14, 12 April 2012

cd $LJHOME
for i in $(bin/cvsreport.pl -n -1); do 
   echo "Removing $i" && rm $i; 
done