The below command moves all the .vcf
files into the directory.
cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar
When I use a bash
wrapper the target.txt
gets created but the text files do not get copied. All the paths are the same, but not sure why its not working. Thank you :).
Bash
logfile=/home/cmccabe/Desktop/test/process.log
for file in /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf ; do
echo "Start annovar creation: $(date) - file: $file"
echo ${file##*/} >> /home/cmccabe/Desktop/NGS/annovar/target.txt
cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar
echo "End annovar file creation: $(date) - file: $file"
done >> "$logfile"