I was wondering how can I list files with lsin bash that will list only a specific subset of files?
For example, I have a folder with 10,000 files, some of which are called:
temp_cc1_covmatand temp_cc1_slurm, but the values 1 vary from 1 to 1000.
So, how would I list only the words temp_cc400_slurm- temp_cc_499_slurm?
I want to do this because I would like to queue files on a supercomputer that only ends with slurm. I could have done sbatch *_slurm, but there are also many other files ending up in the folder _slurm.
Tzj21 source
share