1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| # [, arch, b2sum, b3sum, base32, base64, basename, basenc, cat, cksum, comm, cp, csplit, cut,
# date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt,
# fold, hashsum, head, hostname, join, link, ln, ls, md5sum, mkdir, mktemp, more, mv, nl,
# nproc, numfmt, od, paste, pr, printenv, printf, ptx, pwd, readlink, realpath, relpath, rm,
# rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-384sum, sha3-
# 512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf, sleep, sort,
# split, sum, sync, tac, tail, tee, test, touch, tr, true, truncate, tsort, uname, unexpand,
# uniq, unlink, vdir, wc, whoami, yes
Set-Location $(Split-Path -Path $(Get-Command coreutils).Source)
$comands = "arch", "b2sum", "b3sum", "base32", "base64", "basename", "basenc", "cksum", "comm", "csplit", "cut"
$comands += "split", "sum", "sync", "tac", "tail", "tee", "test", "touch", "tr", "true", "truncate", "tsort", "uname", "unexpand"
$comands += "uniq", "unlink", "vdir", "wc", "whoami", "yes"
foreach ($e in $comands) {
# enumerate over the whole array
New-Item -Path ("${e}" + ".exe") -ItemType SymbolicLink -Value coreutils.exe
}
|