Purchase Solution

Counting uppercase letters in a file

Not what you're looking for?

Ask Custom Question

I need to count the number of uppercase letters in the given file "File.txt". Please help me with Bash command(s) to achieve this.

File.txt:

ctctatctgcggcgtgtggcggcgagATGTCTCACAGGAAATTCTCAGCTCCCAGGCATGGGTCCTTGGGCTTCCTGCCTCGCAAGCGCAGCAGCCGGCATCGTGGGAAAGTGAAGAGCTTCCCTAAGGATGACGCTTCCAAGCCCGTTCACCTCACAGCCTTTCTGGGTTACAAGGCTGGCATGACCCACATCGTCCGGGAAGTTGACAGGCCAGGATCTAAGGTGAACAAGAAAGAAGTCGTGGAGGCTGTGACCATTGTGGAAACTCCCCCAATGGTGGTTGTGGGCATTGTGGGATATGTTGAGACCCCACGAGGCCTCCGGACCTTCAAGACTGTATTTGCTGAGCACATCAGCGATGAGTGTAAAAGGCGCTTCTATAAGAACTGGCACAAGTCTAAGAAGAAGGCTTTCACCAAGTACTGTAAGAAATGGCAGGATGACACAGGCAAGAAGCAGCTGGAGAAGGACTTCAACAGCATGAAGAAGTACTGCCAGGTCATCCGCATCATTGCCCACACTCAGATGCGTCTGCTTCCTCTACGCCAGAAGAAGGCACACTTGATGGAGATCCAGGTGAATGGAGGCACTGTGGCTGAGAAGCTCGACTGGGCCCGAGAGCGGCTGGAGCAGCAGGTTCCTGTGAACCAGGTGTTTGGGCAGGATGAGATGATTGATGTCATTGGCGTGACAAAAGGCAAAGGGTACAAAGGGGTAACCAGTCGTTGGCATACAAAGAAACTGCCCCGAAAGACCCATCGAGGTTTGCGCAAAGTTGCCTGTATTGGAGCCTGGCACCCTGCCCGTGTTGCCTTCTCTGTGGCTCGAGCTGGGCAGAAAGGCTACCATCACCGAACAGAGATTAACAAGAAGATTTACAAGATTGGTCAAGGCTACCTCATCAAGGATGGCAAACTGATCAAGAACAATGCATCTACTGACTATGACTTGTCTGACAAGAGCATCAACCCACTGGGTGGCTTTGTGCATTATGGTGAGGTGACCAATGACTTCATCATGCTCAAAGGCTGTGTGGTGGGGACCAAGAAGCGAGTACTTACTCTTCGTAAGTCCTTGCTGGTTCAGACCAAACGTCGGGCCCTGGAGAAGATTGACCTGAAGTTCATTGACACCACCTCCAAATTTGGCCATGGTCGCTTCCAGACCATGGAGGAGAAGAAAGCATTTATGGGACCACTCAAGAAAGATCGCATTGCCAAGGAGGAAGGAGCTTGAttccaggaccactttgtgcagatggtggggtctcaccaataaaatatttctactc

Purchase this Solution

Solution Summary

Solution provides an approach that is specific to the given file data, so it will work only with those files that contain only lowercase and uppercase letters.

Solution Preview

You can find the original size of file in characters, using:

wc -c File.txt

You can use following pipeline to ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.