Hi members,
Pardon me if this looks a trivial doubt.
I know this has been asked several times on stackoverflow, unix and many other forums.
I'm having a hard time, finding file using 'find'. I have tens of folders and each of them have another tens of folders, and so on.
The name of folders and the file I am interested to find are way to long.
Isolate_96_CN_11_B21_M1_C3_P2_GGATTAGG_L001_R2_001.fastq.gz
Example:
I want to find file which has "96_CN_11_B21_M1_C3_P2".
Above commands take ages. I have waited more than 90 mins for the output and it still was processing.
Please guide here.
Again, sorry for this small query.
Pardon me if this looks a trivial doubt.
I know this has been asked several times on stackoverflow, unix and many other forums.
I'm having a hard time, finding file using 'find'. I have tens of folders and each of them have another tens of folders, and so on.
The name of folders and the file I am interested to find are way to long.
Isolate_96_CN_11_B21_M1_C3_P2_GGATTAGG_L001_R2_001.fastq.gz
Example:
I want to find file which has "96_CN_11_B21_M1_C3_P2".
Code:
find . -name "*.fastq.*" | xargs grep "96_CN"
Code:
find . -name "*.fastq.gz" -exec egrep -Hn "96_CN_" {} \;
Please guide here.
Again, sorry for this small query.
Comment