3 ms·
The original joke was to define an alias alias libtree='curl -LfSs https://raw.githubusercontent.com/haampie/libtree/master/libtree.c | ${CC:-cc} -o /tmp/l
by stabbles 2y ago
The original joke was to define an alias
alias libtree='curl -LfSs https://raw.githubusercontent.com/haampie/libtree/master/libtree.c | ${CC:-cc} -o /tmp/libtree -x c - -std=c99 -D_FILE_OFFSET_BITS=64; /tmp/libtree'
so any time you invoke `libtree` it downloads the latest version, compiles it, and runs it.
With a stable internet connection, it is still faster than pax-util's lddtree, which is written in Python.
C is an excellent scripting language.