please see the attachment file
there is 2 line one is with io and one is x
how do i compare those 2 list?
I want to get the paramenter that not exsist at both list.
Here is my code:
if { $x == ""} {
puts "x is empty"
set x $i
continue
} else {
foreach i $io {
set y ""
puts $writefile1 "pin is $pin_name \n io is $io \n x is $x"
if {[lsearch -exact $x $i] == -1} {
lappend y $x
set pin $pin_name
puts $writefile2 "$pin --->\n $y"
}
}
set x $io
set x [list $x]
continue
}
Please advice
Test2.txt is file that i extract the result to.
test1.txt is file that contain both
there is 2 line one is with io and one is x
how do i compare those 2 list?
I want to get the paramenter that not exsist at both list.
Here is my code:
if { $x == ""} {
puts "x is empty"
set x $i
continue
} else {
foreach i $io {
set y ""
puts $writefile1 "pin is $pin_name \n io is $io \n x is $x"
if {[lsearch -exact $x $i] == -1} {
lappend y $x
set pin $pin_name
puts $writefile2 "$pin --->\n $y"
}
}
set x $io
set x [list $x]
continue
}
Please advice
Test2.txt is file that i extract the result to.
test1.txt is file that contain both