void lookfordups(cString wildcard, cString newending) { cerr<<"wildcard="<<wildcard<<endl; cerr<<"newending="<<newending<<endl; cDualList thelist; FileandHashList(thelist,"./",wildcard,false); int hits=0; cString progressFile="da-progress.txt"; progressBeginning(progressFile); //int donothing=3; for(int i=0; i<thelist.Length(); i++) { if(thelist[i]!="") { cout<<endl<<"# "<<thelist.GetName(i)<<" matches criteria for deletion"<<endl; cout<<"mv -iv \'"<<thelist.GetName(i)<<"\' \'"<<thelist.GetName(i).ChopRt('.')+"."+newending.ChopLf('.')<<"\'"<<endl; cerr<<"\rProgress: "<<(i+1)<<" / "<<thelist.Length()<<" hits="<<hits<<" " ; progressDuring(progressFile,i+1,thelist.Length()); //} //end of for j } cerr<<"\rProgress: "<<(i+1)<<" / "<<thelist.Length()<<" hits="<<hits<<" " ; } //end of for i cout<<"# hits="<<hits<<endl; progressEnding(progressFile); }