I have a for loop which prints available vcf files in the path for a list of patient IDs (using find dx data function) into my zsh terminal:
for i in $(cat patient_id.txt); do
dx find data --property patient_id=$i --path "vcf/"
done
How I can have a file contain the vcf files that the loop shows in terminal? I mean by using this command in the terminal, I am seeing the name and path of my vcf files for a given participant list and working directory; Instead of seeing the file name in the terminal, I want to have that file name in a txt file.
Thanks
> fileafter thedone. Is output redirected tofile? Is it still shown in your terminal? What is the output? Are you sure files are found and you aren't just getting error messages? – terdon Jan 29 '24 at 11:07