2 karma · joined May 29, 2015 (11y ago) · 1 submissions
comment 8y ago · link · parent
function up() { cd "$(printf '../'%.0s $(seq 1 "${1:-1}"))" && pwd; } #up 4 goes up 4 directories