Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is C. aminegg.txt :- AMIN AND THE EGCS Once upon a time . . . a peasant called Amin lost all his crops from

Language is C.

aminegg.txt :-

AMIN AND THE EGCS

Once upon a time . . . a peasant called Amin lost all his crops from his miserable little plot in a drought. He decided to seek his fortune in another village, and off he went on his donkey. On credit, he obtained a dozen hard-boiled eggs from a merchant for his journey. Seven years later, Amin returned to his village. This time he was riding a fine black horse, followed by a servant on a camel laden with gold and silver coins. Amin had become a rich man and the news of this soon spread through the village. Straight away, the merchant who had given him the dozen eggs on credit knocked at Amin's door, asking for five hundred silver pieces in payment of the old debt. Amin of course refused to pay such a large sum and the matter was taken before the judge. On the day of the hearing, the merchant appeared in court at the appointed time, but of Amin there was no sign. The judge waited impatiently for a quarter of an hour, and was on the point of adjourning the hearing, when Amin dashed in, out of breath. At once, the merchant said, in defence of his demands: "I asked Amin for payment of five hundred silver coins, because twelve chickens might have hatched from the eggs he bought from me on credit, seven years ago. These chickens would have become hens and cockerels; more eggs would have been laid, these too would have hatched, and so on. After seven years, I might have had a great flock of fowls!" "Of course," agreed the judge. "Perfectly right." And turning to Amin with a hostile air, he ordered: "What have you to say for yourself? And, by the way, why are you late?" Amin did not turn a halr. "I had a plate of boiled beans in the house and I planted them in the garden to have a good crop next year!" "Fool!" exclaimed the judge. "Since when do boiled beans grow?" To which Amin promptly retorted: "And since when do boiled eggs hatch into chickens?" He had won his case.

image text in transcribed

Copy the file "aminegg.txt" from the link aminegg.txt to your directory on SNOWBALL. Part 1 Try the following sed commands: sed 's/ he/ HE/' () matches to the beginning of the line, while the dollar-sign ($) matches to the end of the line. that contains the text "STARTEOL" is not printed. (Use the "|" and cat to display the results) and cat it at this point) Next run the diff utility, using aminegg.txt and file you have created. (Use the cat command with pipe "|", to display the result) Next, do the same thing as above (use the up arrow to go to a previous command), and modify it to overwrite the output in the file you created yourUserName_aminegg.txt Part 2 Use commands to print current date and time, total number of files (count) in your current working directory, print your working directory (path) and finally list all the files in the current directory. Copy the file "aminegg.txt" from the link aminegg.txt to your directory on SNOWBALL. Part 1 Try the following sed commands: sed 's/ he/ HE/' () matches to the beginning of the line, while the dollar-sign ($) matches to the end of the line. that contains the text "STARTEOL" is not printed. (Use the "|" and cat to display the results) and cat it at this point) Next run the diff utility, using aminegg.txt and file you have created. (Use the cat command with pipe "|", to display the result) Next, do the same thing as above (use the up arrow to go to a previous command), and modify it to overwrite the output in the file you created yourUserName_aminegg.txt Part 2 Use commands to print current date and time, total number of files (count) in your current working directory, print your working directory (path) and finally list all the files in the current directory

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Accounting questions