Hallo All,
Don't know if this is possible, but here we go. I am trying to catch a string to use later in an awk script.
# Catch subject
/^Subject/ { $0 = KeepThis ; next}
# Rewrite subject
/^Subject/ { $0 = "Subject: NEW"
print; next}
.
.
.
print <original_subject>KeepThis</original_subject>
But this does not work, it prints literally 'KeepThis' and the #Rewrite subject seems to be ignored. Could someone refresh my tired mind?
Don't know if this is possible, but here we go. I am trying to catch a string to use later in an awk script.
# Catch subject
/^Subject/ { $0 = KeepThis ; next}
# Rewrite subject
/^Subject/ { $0 = "Subject: NEW"
print; next}
.
.
.
print <original_subject>KeepThis</original_subject>
But this does not work, it prints literally 'KeepThis' and the #Rewrite subject seems to be ignored. Could someone refresh my tired mind?