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

  Gap among the most highly skilled in the population

gap among the most highly skilled in the population and the least skilled will begin to fall in the near future.

  How much juice will the costumer purchase in a month

how much juice will the costumer purchase in a perticular month. What is the elasticity of demand for juice.

  Increase print and television advertising to raise brand

After 15 years of steady growth, sales of a brand of aftershave have begun to decline. What is the first step that the marketing director should take? Choose 1 answer

  Firm making the right decision

Engineering estimates suggest that at those levels, the marginal product of capital will be 100 and the marginal product of labor will be 75. If the wage rate is $5 and the rental rate on capital is $10, is the firm making the right decision?

  Factors shifting expenditure function

Discuss how the aggregate expenditure function shifts in response to changes in each of time following variables:

  What do mrres represents residual marginal revenue curve

SF represents the supply curve of the fringe, D is the market demand curve, DRES represents the residual demand curve of the dominant firm, MRRES represents the residual marginal revenue curve of the dominant firm.

  What is the annual money growth rate

Discuss the short-run effect on output, unemployment, general price level and interest rate with a substantial increase In the factor cost of production.

  Legislative bodies impose price controls to help a part

Legislative bodies impose price controls to help a part of the economy; who benefits and who is harmed by price ceilings and price floors?

  What will happen to the output of goods and services

Total spending in the economy is equal to consumption plus investment plus government spending plus net exports. If household want to save and thus do not use all their income for consumption, what will happen to total spending

  What is the marginal cost of the 101st unit of output

In a short run, a firm’s total costs of producing the hundredth unit of output equals $10,000. If it produces one more unit, its total cost will increase to $10,150.

  Issue significant for macroeconomists

Provide a clear discussion of at least one economic issue raised in the article in your own words. Why is this story/topic/issue significant for macroeconomists?

  Solving problem about competitive market

Most commercial fish species in nearly every ocean and sea are rapidly depleted. The world fisherman and vessels represent twice as much fishing power as major stocks of fish can sustain.

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