Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Alias/UnAlias Wildcards and Regular Expressions

Aug
2,056
83
I have many aliases that begin with BM.

I only want to see the aliases that begin with BM and end with a single number (1 through 9).

I can do this as follows;
Code:
E:\Utils>alias bm* | ffind /kvmt"bm[0-9]" 
bm1=E:\Documents\vb6\ROT\
bm2=E:\Documents\GitHub\linguar-amadala-convert-vb-type-api-and-enum-vc-odl-with-colorization__1-28728\ODL Converter
bm3=E:\Documents\GitHub\WinFBE\Settings
bm4=U:\chm
bm5=E:\Utils

When I try this using the alias command;
Code:
E:\Utils>alias bm[0-9] 
TCC: Not an alias "bm[0-9]"

I would like to suggest adding the ability to use wildcards and regular expressions with both the alias and unalias commands.

Joe
 
This seems to do what I want,
Code:
alias bm*[0-9]

...which displays only the BM1 through BM9 aliases.

I was able to do,
Code:
unalias bm*[0-9]

...which removed BM1 through BM9 from my alias list.

Code:
alias bm*

...now shows all of my aliases that begin with BM,
with all aliases of BM1 through BM9 gone.

Joe
 
Back
Top
[FOX] Ultimate Translator
Translate