Script for downloading fastq files from ENA database: Gist github link
Create a file named "SRRs_to_process.txt" in the same directory as the script file and this file should have a list of single SRR ID as entries in every line.
Fastq files will be downloaded in the same directory where the script is located. Script also generates an output file named "Number_of_reads_in_fastq_files.txt" which has information on the status of download of the fastq files and number of reads in the fastq file downloaded.
Note: This script was tested in both Mac OS and linux OS and it requires "curl".
If you have SRX ID and want to map SRX IDs to SRR IDs, please refer: biostar link