How would I use awk in an interactive manner? That is, prompting for user input...doing a calculation and re-prompting?
BEGIN {
while (ARGC<3) {
print sqrt(ARGV[1])
}
}
I looking for somthing like this however i don't know how to re-read in user input or an exit statement to break the loop.
BEGIN {
while (ARGC<3) {
print sqrt(ARGV[1])
}
}
I looking for somthing like this however i don't know how to re-read in user input or an exit statement to break the loop.