I gzipped files in a slurm job. But job canceled before it is done. It takes so long(~10min for a file, and there is 200 files). How can I zip only the remaining files which are not zipped yet?
$ ls SRR7121484_1.fastq SRR7121484_1.fastq.gz SRR7121484_2.fastq SRR7121484_2.fastq.gz SRR7121485_1.fastq SRR7121485_2.fastq SRR7121488_1.fastq SRR7121488_2.fastq ....
As you see, all the remaining files are bigger than the number 7121485. I tried to extract this value and use conditionals, however no success yet.
Thanks in advance!