Better HN
topnewbestaskshowjobs
Log inSign up

aydinmercan

1 karma · joined May 5, 2021 (5y ago) · 1 submissions

@aydinmercan_dev
Submissions

comment 5y ago · link · parent

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