Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
laumars
on Sept 10, 2013
|
parent
|
context
|
favorite
| on:
Unix Commands I Wish I’d Discovered Years Earlier
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: