Code: Select all
regexp {\d} [split $list]
Code: Select all
file delete -force -- scripts/file1.txt
file rename -force -- scripts/file2.txt scripts/file1.txt
Code: Select all
foreach a [split [read [open $file1] \n] {
foreach b [split [read [open $file2] \n] {
if [string equal $a $b] {
continue
} else {
lappend c $a
}
}
}