Skip to content

Instantly share code, notes, and snippets.

@Temikus
Created December 7, 2012 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Temikus/4231513 to your computer and use it in GitHub Desktop.
Save Temikus/4231513 to your computer and use it in GitHub Desktop.
UNIX-like aliases for Windows CLI tools.
::grep
echo findstr %1 %2 %3 %4 %5 > %systemroot%\grep.cmd
::ifconfig
echo IF "%1"=="-a" (ipconfig /all) ELSE (ipconfig %1) > %systemroot%\ifconfig.cmd
::man
echo %1 /?> %systemroot%\man.cmd
::ls
echo IF "%1"=="-a" (dir) ELSE (IF "%1"=="-al" (dir) ELSE (dir %1 %2 %3 %4 %5)) > %systemroot%\ls.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment