5 ms·
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!)
by laumars 13y ago
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