Link to home
Start Free TrialLog in
Avatar of mahjag
mahjag

asked on

counting the number of files listed in the unix

When I do ls -l *.log I wanted also the count of the files that has the extension .log, will I get it? if i did wc it only counts the characters and words but that is not what I want, I want the number of files listed according the pattern that I am listing,,

ls -l *.log  should list the files and also count them
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial