Show a list of all the polling organizations

Assignment Help Computer Engineering
Reference no: EM132154640

Overview

In this assignment, in addition to the commands covered in the previous homework, we will work with filters

and commands such as grep and introduce sed and tr.

Part 1

This part of the assignment uses the polls.csv file from Assignment 2.

NOTE: Please use the file from the course website . . . instead of your own

polls.csv.

Copy the new file to your assignment 3 sub directory before using it.

Write commands to perform the following:

1. Show a list of all the polling organizations.

2. Count the number of unique polling organizations.

Part 2: The Dictionary and Regular Expressions

The answers to these questions require using the command grep, in some cases wc, and the dictionary file (/usr/local/tmp/csce215/Words).

The dictionary is case sensitive; keep this in mind when writing your grep commands. Also, for the purposes of these questions, only a, e, i, o, and u are vowels (not y), and a consonant is any character that is not a vowel (including punctuation).

First take a look at the contents of (/usr/local/tmp/csce215/Words). Note that each word has two entries. In normal and reverse order. In addition, the first letter of each word is uppercase.

1. Using tr, convert all upper case letters to lower case.

2. Using sed, remove the reversed copy of each word.

Hint: Each word is followed by it's reverse on subsequent lines.

Save the output of this command as a file named "words" in your home directory for use with the remaining questions.

3. Count the number of five letter words in the dictionary.

4. Count the number of seven letter words in the dictionary that start with the letter "a".

5. Output all the words in the dictionary

$HOME/words

that have exactly six consonants (non-vowels) in a row.

Hopefully that works, if not can you give me whatver you can?

Reference no: EM132154640

Questions Cloud

What is the price of the stock today : If the required return is 13 percent, what is the price of the stock today? (Do not round intermediate calculations and round your answer to 2 decimal places)
Calculate the expected change in the price : a) Calculate the expected change in the price of the bond if market interest rates FALL by 1.25%
Convert between us length and international length metrics : Write a Java GUI application to convert between US length metrics and the International length metrics.
What is the implied one year treasury rate : The 1 year treasury note is currently yielding 2.5%. What is the IMPLIED one year treasury rate one year from today?
Show a list of all the polling organizations : Show a list of all the polling organizations. Count the number of unique polling organizations.
Complete the following table for different scheduling policy : In a uniprocessor system, five processes arrive at different time. The processing time for each process is listed in following Table.
Write a c program that allows a user to extract some part : Write a C program (partcopy) that allows a user to extract some part of an existing file (fileSource) and copy it to a new file fileTarget.
Write all scripts using the shell rather than learning a new : Why not just write all scripts using the shell rather than learning a new programming language like Perl?
Create a script that prints a friendly message : Create a script that prints a friendly message. However, the script can be executed only from one terminal.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd