i wanna ask how to read from a file and give a summery of letter count (separate small than capital letters),number of line ,number of paragraphs,number of quoted sentenses ?
i know the number of lines by (wc -l) but the others i woundered about !! hope somebody teach me :) thx

Recommended Answers

All 2 Replies

Member Avatar for b1izzard

To get the Capital letters count use

tr -cd "[a-z]"<filename | wc -c

In the same way you can solve other problems too.
Refer man pages of tr command.

thaaaaank youuuuu :) :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.