shell - numeric range in tcsh -


suppose have bunch of files, names of contain number, this: xxx_1.txt, xxx_2.txt, ... xxx_42.txt

in bash, it's easy operate on subsets of these files, e.g. ls xxx_{1..33}.txt xxx_{35..41}.

what tcsh analog of this?

as far know there no built-in mechanism specify range patterns (except single character ranges) in tcsh. could, example, use seq utility (if available) sed:

ls `(seq 1 33; seq 35 41)|sed 's/^/xxx_/;s/$/.txt/'` 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -