New
#1
A question about PowerShell's Alias function
I am trying to set up a powershell resource file and add a bunch of aliases to common unix programs and I am trying to find out if I can alias function flags some how as well.
For example the string regex function Select-String looks alot like grep in the *nix world and I know I can alias Select-String to grep if I wanted to. However the flags are completely different so I am wondering is their a way to alias flags as well. For example going back to Select-String, Select-String -NotMatch would be grep -v. So to boil down my question can I make an alias to the flags of an alias.
eg:
Select-String -Case-Sensitive -> grep
Select-String -> grep -i
Select-String -NotMatch -> grep -v
etc ...