5
votes
2answers
35 views

Modifying zsh globbing patterns to use with cp

I'm trying to write a script to copy files recursively from a particular folder except files A.extn, B/*.extn and C/* where B and C are directories and extn is just some generic extension. This is ...
-5
votes
1answer
69 views

Counting the number of files with in a diectory with a pattern but pattern dosen't know [closed]

To count the files in a directory having some pattern for some files, but we don't know the pattern, then How to count than particular pattern files? For Example If a directory has xx_1.txt, ...
1
vote
2answers
598 views

Pattern matching exception for shell script

So I have the following shell script for batch renaming the episodes of some given TV series: #!/bin/bash #script for renaming files of form "*01*.ext" to "Episode 01.ext"; counter=0 for all_files in ...