I have this linux command that does what I need it to do (get count and filename). The only problem is it outputs the entire directory path (123 dir1/dir2/sample1.txt) How can I modify to include just filename and count (123 sample1.txt)? I have this linux command that does what I need