Professional Documents
Culture Documents
StudentNo|Name|Standard|SchoolName|MathematicsScore|ScienceScore
1|Latha|Third|Vikas|90|91
2|Neethu|Second|Meridian|92|94
3|Sethu|First|DAV|86|98
4|Theekshana|Second|DAV|97|86
5|Teju|First|Sangamithra|89|88
6|Theekshitha|Second|Sangamithra|99|100
Write a command to fetch the student details , who scored >=90 in mathematics and
>=90 in Science subject from Sangamithra school and display students details.
For more clarity, please refer to the sample testcase input and output below.
The input file with the data(testcase input / customized input) in the format
mentioned, automatically supplied as command line argument when you run the
script / command , you have written. Hence you don't need to worry / work on, " How
to bring the file to your script"?.
You just need to assume that a file is supplied to your script and read the file,
which is supplied as command line argument and process the data in the file towards
the given requirement.
You can use shell variables (e.g. $0,$1,$2) whichever is applicable for your
requirement to provide the command line argument.
Sample Testcase:
Input:
1|Latha|Third|Vikas|90|91
2|Neethu|Second|Meridian|92|94
3|Sethu|First|DAV|86|98
4|Theekshana|Second|DAV|97|86
5|Teju|First|Sangamithra|92|94
6|Theekshitha|Second|Sangamithra|99|100
Output:
5|Teju|First|Sangamithra|93
6|Theekshitha|Second|Sangamithra|99.5