all right, here's the problem
awk ' {
FILENAME=="myfile2"{
print $1
}
print $1
}' myfile1
so the two prints should be different. The main problem is that i don't know if i can modify the FILENAME variable like that or if the error is in the syntaxis, or what could i do to achieve this, help, help, thanks.
awk ' {
FILENAME=="myfile2"{
print $1
}
print $1
}' myfile1
so the two prints should be different. The main problem is that i don't know if i can modify the FILENAME variable like that or if the error is in the syntaxis, or what could i do to achieve this, help, help, thanks.