A built-in or a command
In the terminalela --spec a-built-in-or-a-command
cp, stat and grep work in ela as in any shell. The built-in procs for the common ones start
no process, about a hundred times faster in a loop, and give ela values, a map or a number, where
the command gives text to parse.
info = file.info("notes.md") # not $(stat -c '%a %s' notes.md)echo "$info['mode'] $info['size']"
| Program | Built in |
|---|---|
cp, mv, ln | file.copy, file.move, file.link |
stat, touch, mktemp | file.info, file.touch, file.temp and dir.temp |
du, find | dir.size, dir.walk |
chmod, chown | file.chmod, file.chown |
cmp, sha256sum | file.same, hash.sha256 |
realpath, readlink, basename, dirname | path.real, path.link, path.base, path.dir |
(ela --spec builtins-or-commands)