Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A regex match will do that easily enough:

    tree | egrep -o "[0-9]+ file(s|)"
edit: or you could just tail the output (should have thought of this first!)

    tree | tail -n1


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: