Single file word detection

Assignment Help Macroeconomics
Reference no: EM131086854

Question

Single file word detection

Write a bash script called gender.sh which takes one argument - a name. The script should print "female" if the word appears in the file /usr/local/linuxgym-data/census/femalenames.txt, and "male" otherwise.

Hint: Redirect grep's stdout so it doesn't get printed, or use the grep "quiet" option.

Question

Same frequency

Create a bash script called samefreq.sh which takes one argument - a name. The output should be the ALPHABETICALLY ORDERED list of all name's with the same frequency (popularity) as measured in the second column of the table:
/usr/local/linuxgym-data/census/femalenames.txt

For example

./samefreq.sh ANA

will return a list of two names (on separate lines) ANA and RENEE, both of which have frequency 0.120.

Reference no: EM131086854

Questions Cloud

Results of expression : Write the results of each expression. Use the proper type (such as .0 for a double). Note that a variable's value changes only if you re-assign it using the = operator. Discuss any errors you make with your neighbor.
What are the prevalent health concerns in the community : What are the prevalent health concerns in this community? What are the key issues related to cost, quality, and access that affect the organization and the people this organization serves?
Write a program to input a salesman name : A company distributes thirty different items around texas through its twenty salesmen. Using arrays write a program to input a salesman name and the corresponding sales made by each of the salesman for each of the item.
Draw a plc ladder diagram for the situation : A small house has three windows and two doors. Each window and door has a switch attached such that the contacts close when a door or window opens. Draw a ladder logic diagram that will turn on a light if one or more windows are open or if both do..
Single file word detection : Write a bash script called gender.sh which takes one argument - a name. The script should print "female" if the word appears in the file /usr/local/linuxgym-data/census/femalenames.txt, and "male" otherwise.
What tax year-end should xyz use : Finally, thirty other calendar year-end individual partners (each with less than a 2% profits and capital interest) own the remaining 45% of the profits and capital interests in XYZ. What tax year-end should XYZ use and which test or rule requires..
Regular flow control valve : How does the pressure drop across a regular flow control valve affect the flow through the flow valve?
Draw the plc ladder diagram for the circuit : Draw the PLC ladder diagram for the circuit
Final project instructions : Review the list of industry topics and select one. You will find that many of these topics are interrelated and discussion of more than one listed below is bound to occur, yet choose a primary topic and then relate it to others as appropriate.

Reviews

Write a Review

Macroeconomics Questions & Answers

  To find the future value in investment

Find the future value one year from now of a $7,000 investment at a 3% annual compound interest rate.if the investment is made for 2 yeaars also calculate the future value.

  Determine the price and quantity at the kink of demand curve

The kinked demand curve in an oligopolistic market is defined by the equations: P = 140 - 0.5Q, and P = 200 - 2Q. a) Derive equations for the marginal revenue curves. b) Determine the price and quantity at the "kink" of the demand curve.

  Suppose that the money multiplier is 2

Suppose that the money multiplier is 2. If the Fed buys $2 million in securities, the quantity of money will be?

  Advertising elasticity of demand

You are the manager of a popular shoe company. You know that the advertising elasticity of demand for your product is 0.15. How much will you have to increase advertising in order to increase demand by 10 percent?

  Determine total profit functions

Philips Industries produces a certain product that can be sold directly to retail outlets or to the Superior firm for further processing and eventual sale as a completely different product.

  What are the covered and uncovered interest parity

Explain briefly what the covered interest parity (CIP) and uncovered interest parity (UIP) arbitrage conditions are and how they operate as equilibrium conditions for the spot and futures foreign exchange (FX) markets.

  Demand curve for stadium seats

The owner of the Los Angeles Dodgers has commissioned a study that  showed the demand by fans for stadium seats (per playing date) to be  P = 22 - 0.2Q-How much revenue does the owner make at the current price?

  Relationship between the variable and economy

As an worker of the world bank you have been proposed to research the requirements of a country with a particular economic concern. For this project choose a nation and an economic concern such as population, unemployment etc.

  Describe the current general interest rates

Describe the current general interest rates. Is the current interest level one that promotes or retards growth in the economy.

  Illustrtae what does this imply about the effectiveness

Illustrtae what does this imply about the effectiveness of monetary and fiscal policy to reduce the unemployment rate.

  Did equilibrium quantity increase-decrease or indeterminist

On this graph indicate how a decrease in the price of a substitute good will or will not shift the curves and cause a new equilibrium point. Label any new demand or supply curves you may have to draw as D2 and S2 label any new equilibrium point yo..

  Terms of a computer programmer salary

If a computer project takes 6 months, how much does it cost in terms of a computer programmer salary to complete the project in the United States?

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