3 ms·
I have seen awk be used for really cool stuff but I usually find myself just using sed and cut anyway. For example I would probably write the git ls-tree part a
by aydinmercan 6y ago
I have seen awk be used for really cool stuff but I usually find myself just using sed and cut anyway. For example I would probably write the git ls-tree part as this:
git ls-tree -r HEAD | cut -f2 | xargs -n1 sed -n "/^\/\//p;1q" | less