Question: 1 . Write a Bash script called a 1 a . sh that prints every line of one file that contains a line of a
Write a Bash script called aash that prints every line of one file that contains a line of a second file. That is $ aash file file will print every line of file containing a line of file As an example, suppose we have the input files $ cat foo a b bb b cc $ cat bar aa ab bc c $ cat baz ab cc ab Then the output would be $ aash foo bar aa ab bc $ aash bar foo cc $ aash foo baz ab cc ab
Write a Bash script called absh that prints every line of one file that is not contained in a second file. That is $ absh file file will print every line of file that is not in file Using the same input files as above, $ absh foo bar bb cc $ absh bar foo aa ab bc $ absh baz foo ab ab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
