I'm asked to get the line count of all the files in some directory for which the path will be provided as a terminal argument.
My solution so far is:
wc -l "$1/"*
But doing this also gives me some unnecessary output like this:
wc: '/home/user/Desktop/Dir': Is a directory
So how can I print only the results for actual files not directories? And then how could I only display the ones that have been edited at most 10 minutes ago?