![]() You can then create an alias for the function: set-alias cdt cdtempĪpropos is one of my favourite bash commands, not so much for what it does, but because I like the word ‘apropos’. FullyQualifiedErrorId : CommandNotFoundExceptionĪ way around is to create a function instead: remove-item -path alias:cdtemp CategoryInfo : ObjectNotFound: (cd c:\temp:String), CommandNotFoundException Check the spelling of the name, or if a path was included, verify that the path is correct and try again. You get: cdtemp : The term 'cd c:\temp' is not recognized as the name of a cmdlet, function, script file, or operable program. ![]() If you try doing this in Powershell, it doesn’t work so well: set-alias cdtemp "cd c:\temp" In *nix, you can do this alias bdump="cd /u01/app/oracle/admin/$ORACLE_SID/bdump/" 22.5 for loop – for each file in a folderĪt it’s simplest, the powershell equivalent of the unix ‘alias’ is ‘set-alias’ set-alias ss select-string.22.2 for loop – for each word in a string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |