Search Results

Search: Posts Made By: RudiC
6,048
Posted By RudiC
The first grep retrieves the line "Return Code...
The first grep retrieves the line "Return Code n", the second extracts the number n which becomes the result of the "command substitution" which in turn serves as an index into the RT array:
0...
6,048
Posted By RudiC
Not sure I get what you want. How far would this...
Not sure I get what you want. How far would this get you (assuming your shell, which you fail to mention, being bash):



RT=(SUCCESS WARNING FAILURE)
echo "Files loaded with ${RT[$(grep -i...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy