|
mask
Usage: mask filenames_list
Inverse bash expansion
Generate glob pattern for filenames_list (suitable only for this list).
> mask f1.ext f2.ext f3.ext
f{1,2,3}.ext
> mask -re f1.ext f2.ext f3.ext
f[1-3].ext
> mask -re f2.ext f1.ext f3.ext
f{2,1,3}.ext
> mask -re=sort f2.ext f1.ext f3.ext
f[1-3].ext
> echo f1.ext f2.ext f3.ext | mask
f{1,2,3}.ext
Commands 'ls *.ext' and 'ls `mask *.ext`' should give the same output.
-re is experimental option.
Последняя модификация: Thu Mar 12 12:37:28 2026
Download
Source
|