3 ms·
Windows has knock-off versions of several unix tools: grep = findstr cat = type which = where sort = sort more = more sudo = runas
by milcron 10y ago
Windows has knock-off versions of several unix tools:
grep = findstr
cat = type
which = where
sort = sort
more = more
sudo = runas
- twic 10y agoBatsh already has some built-in functions which are, i assume, implemented on top of equivalent commands on either platform - for example, readdir() is implemented on top of either ls or dir. It seems plausible that more could be implemented on top of other pairs like these - for example, a searchfile() on top of grep and findstr, impersonate() on top of sudo and runas, etc. Perhaps what it really needs is an extension mechanism to make it easier to define such functions.
- douche 10y agoAt least PowerShell has an ls alias for dir...
- ComodoHacker 10y agoAnd no less! I didn't know about where, being Windows "native". Thank you.