batch renaming of files with perl expressions
问题 This should be a basic question for a lot of people, but I am a biologist with no programming background, so please excuse my question. What I am trying to do is rename about 100,000 gzipped data files that have existing name of a code (example: XG453834.fasta.gz). I'd like to name them to something easily readable and parseable by me (example: Xanthomonas_galactus_str_453.fasta.gz). I've tried to use sed , rename , and mmv , to no avail. If I use any of those commands on a one-off script