little problem of file redirection (awk)

view story

http://www.unix.com – I almost reach my objective (Youhouuu !!!!) But I really don't understand why it doesn't work until the end... :wall: For clarity's sake I am taking a very simple example. The operations I am doing in the script (gsub and print) really don't have any importance !!! I just matter about redirecting the file that I produced inside the script. input file called "original.txt": Code: book # 001|line 1|America book # 002|line 56|Asia book # 003|line 38|Europe I remove the expression "line " in $2 and would like to redirect the output file called "for_later.txt" (HowTos)