Hi,
I am quite new at using awk and did not managed to get the following thing working:
I want to read and process some data (with some output redirection), and under given circumstances ask the user a question "and what to do with that ?", wait for an answer, do the appropriate action and resume the processing.
I found a sample program on the internet for reading standard input, but it generates a syntax error for me (line 2):
Code:
BEGIN { printf "Enter your name: "
getline < "-"
print
}
Any help would be appreciated!