Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/tw/du.tw
1808 views
:
# `du .' using tw
tw -pP -e "
action:
	if (visit++ == 0)
		parent.local += local + blocks;
	else if (type == DIR)
		printf('%d\t%s\n', local + blocks, path);
" "$@"