mercredi 29 avril 2020

BASH: Generating pattern from filenames

I have files in a directory as

file_01_20_01_2020.txt
file_02_20_01_2020.txt
otherfile_01_28_01_2020.txt
otherfile_02_18_01_2020.txt
otherfile_03_18_01_2020.txt

I want to get output as

*20_01_2020.txt
*28_01_2020.txt
*18_01_2020.txt

Aucun commentaire:

Enregistrer un commentaire