>>>>> "Amarendra" == Amarendra GODBOLE <[EMAIL PROTECTED]> writes:
Amarendra> Hello World, Is there a way by which I can get the
Amarendra> exit(number), this `number' in a shell script ? Say, I
Amarendra> do an abort by exit(32). How do I get this 32 outside
Amarendra> the script ?
I don't get what you mean here, but $? is probably what you are
looking for.
Amarendra> Also, how do I read in a file using a shell script ?
Amarendra> Doing a `read var < $file' does not help. 'cause it
Amarendra> breaks off at the first newline character, i.e. var
Amarendra> contains only the first line of the file.
Normally, you don't have to do that. Most of the time,
filter1 < infile | filter2 | filter3 > outfile
is all that you will require. So be more explicit, and I am sure
someone here (or more appropriately, on LIP) will come up with a
better solution.
fup2 LIP, please.
Binand
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help