Hi Amarendra,

>>>>> "Amar" == Amarendra GODBOLE <[EMAIL PROTECTED]> writes:

    Amar> Hello World, Is there a way by which I can get the
    Amar> exit(number), this `number' in a shell script ? Say, I do an
    Amar> abort by exit(32). How do I get this 32 outside the script ?

Look at the shell variable $?

    Amar> Also, how do I read in a file using a shell script ? Doing a
    Amar> `read var < $file' does not help. 'cause it breaks off at
    Amar> the first newline character, i.e. var contains only the
    Amar> first line of the file.

If you can afford to ignore newlines:

   var=`cat $file`

Regards,

-- Raju
-- 
Raju Mathur          [EMAIL PROTECTED]           http://kandalaya.org/

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to