I need to generate a list of unique file names without their extensions or using the shell script command "find"
Say I have a list such as:
file2022_col.R1.twx.gz
file2022_col.R2.twx.gz
file2022_col.bwa.bam
file2332_col.R1.twx.gz
file2332_col.bwa.bam
file3442_col.bwa.bam.bai
I want a list of unique file names such as:
file2022_col
file2332_col
file3442_col
I'm trying to use find -type f -name
but I'm not sure how to construct the option to restrict the find command.