Search Results

Search: Posts Made By: Abdellah
2,455
Posted By Abdellah
Read two file and compare the line
Hello Guys
I need to read and compare two file, one file contains hostname, and others contain hostname and IP@,
and the objective is to read each file and compare if line in file1 equal to first...
3,573
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...
3,573
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)
3,573
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 {
...
3,573
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 5 of 5

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