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

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.

Jump to Post

All 2 Replies

Member Avatar

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.