Click here to Skip to main content
11,721,385 members (79,456 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Linux
Dear All,

Please give me shell sciptting in UNIX to do this task as given below:-

1. Write a shell scipt to display the smallest element in a given 2X2 matrix.
Posted 27-Sep-12 14:12pm
Edited 27-Sep-12 22:48pm
(no name)462K
Sergey Alexandrovich Kryukov at 27-Sep-12 20:21pm
Why do you thin anyone should give it to you? Did you notice this is a Questions & Answers forum? So, ask a question.
Unfortunately, we don't have resources to write scripts on your order, unless some enthusiast would be really interested to do so. However, in this case this is not very likely, because the shell script is not the adequate tool to write such things -- it's elementary the boring way to kill time. :-)
Andreas Gieriet at 28-Sep-12 18:11pm
Return questions:
1) what shell: bash, ksh, csh, ... perl, ...?
2) how is the matrix given?
3) what output is expected (example: input = ... --> expected output = ...)?
4) interactive or pure batch?
5) need a gui to "display" the result?
6) any robustness requirements (check if really 2x2 matrix, entries are numbers or any kind of symbol, any constraints on numbers like integral numbers only, etc.)?
7) ...
As Sergey pointed out: how comes that you dream of us doing your (home-)work?
Sergey Alexandrovich Kryukov at 30-Sep-12 20:01pm
By now -- multiple re-posts. Reported for abuse.
Sergey Alexandrovich Kryukov at 30-Sep-12 20:01pm
I must warn you that multiple re-posts you do can result in disabling of your account.
You really should not re-post. Also, you really need to do your home assignment by yourself, to learn at least something.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 254
2 Mika Wendelius 170
3 cyycoish 70
4 ppolymorphe 66
0 Sergey Alexandrovich Kryukov 2,249
1 OriginalGriff 1,024
2 F-ES Sitecore 690
3 Maciej Los 619
4 Richard MacCutchan 580

Advertise | Privacy | Mobile
Web01 | 2.8.150901.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100