Search Results

Search: Posts Made By: Abdellah
1,282
Posted By Abdellah
awk -F"|" ' { if ( ! /UP/){ ...
awk -F"|" ' {
if ( ! /UP/){
print "Node" $1 "is" $2 ;
}
else {
print "All Nodes OK" ;
}
}' db_status.txt | awk...
1,282
Posted By Abdellah
thank you rdrtx1, the first if is working fine,...
thank you rdrtx1,
the first if is working fine, but the second is not working (if all databases is UP the program not printing anything)
1,282
Posted By Abdellah
Thank you for your help , i have created this one...
Thank you for your help , i have created this one but it show all the file content ...
awk -F"|" ' {
if ($2!="UP"){
print "Node" $1 "is" $2 ;
}
else {
...
1,282
Posted By Abdellah
Read Table in file and split
HELLO
I need your help please , i need to read a file that contain a table like :

Name | Status
------------------
DB 1 | UP
DB 2 | UP
DB 3 | DOWN
DB 4 | UP
DB 5 | UP

the...
Showing results 1 to 4 of 4

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