Re: regex help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okay, so basically, whatever's in the braces is treated as a comma
separated array of strings and whatever string the braces are part of
gets duplicated for each entry in the array... and if their are
multiple sets of braces, a test I just did suggests the expansion
covers the entire Cartesian product... at least,

mkdir [1,2,3}test{1,2,3}

generated 9 folders...

Is there a way to define a range? I tried:

mkdir {a-z}{0-9}

But that seems to get interpreted literally, creating a folder named {a-z}{0-9}.

Still, even without a way to handle ranges, this sounds like a very
useful trick and and easy to remember one to boot.

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]