How can I write a loop to execute a command for each file as specified by user input?
Below is part of a script to execute a command on a file defined by the variable DSpath. There are several of these files distinguished by the number at the end of the filename “_01”. The variable numlongs define how many of these files are present. What is the best way to write a loop which will execute the command for each of these files using the variables? Thank you.
How can I write a loop to execute a command for each file as specified by user input?
Below is part of a script to execute a command on a file defined by the variable DSpath. There are several of these files distinguished by the number at the end of the filename “_01”. The variable numlongs define how many of these files are present. What is the best way to write a loop which will execute the command for each of these files using the variables? Thank you.
bash “while read line” loop, with variables as file input
The sample code, and the idea as follows
creating a read legnth count for each read in multiple fastqs
I have a directory of many fasq files. I am using this command to count the read legnth and output into a new file.
creating a read legnth count for reach read in multiple fastqs
I have a directory of many fasq files. I am using this command to count the read legnth and output into a new file.