How do I exit out of an awk function? "exit" stops entire program?
Asked
Active
Viewed 1,223 times
1 Answers
5
I think you want the return
statement.

Carl Norum
- 219,201
- 40
- 422
- 469
-
I do not want to return anything, I just want to get out of there on certain condition. Possible? – hari Sep 14 '10 at 22:12
-
Aah, I can just do "return" and get out. But that way we are returning some junk. Anyways I guess this will do for me. Thanks much. – hari Sep 14 '10 at 22:12
-
1@hari, returning junk is fine as long as you don't try to *use* that junk for something. – Carl Norum Sep 14 '10 at 22:14