in reply to Re^2: Counting the Extensions of the Directory
in thread Counting the Extensions of the Directory
GNU grep 2.5.1 has the -o option to output only the matched text. Your grep doesn't.
As for counting...
E:\tmp>ls | grep -oE "\.\w+$" | sort -u | wc -l 12
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Counting the Extensions of the Directory
by Mago (Parson) on Dec 14, 2005 at 13:08 UTC |
In Section
Code Catacombs