Search Results

Search: Posts Made By: bigbuk
1,566
Posted By Franklin52
Please use only code tags for data and code...
Please use only code tags for data and code samples.

To remove the 2 last fields you could do something like:
awk -F, 'NF=NF-2' OFS=, file
4,420
Posted By RudiC
Why should the loop exit; true is true and will...
Why should the loop exit; true is true and will always stay true. Why don't you use grep's exit code which is 0 if pattern found and 1 if not? Sth. like while /opt/VRTSvcs/bin/hastatus -sum | grep "G...
4,420
Posted By elixir_sinari
Replace while true do ...
Replace
while true
do
/opt/VRTSvcs/bin/hastatus -sum | grep "G group1"
sleep 15
done
with
while /opt/VRTSvcs/bin/hastatus -sum | grep -q "G group1" 2>/dev/null
do
sleep 15
done
Showing results 1 to 3 of 3

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