Possible heresy
If its just for a trivial *nix sysadmin task, you could do worse than man grep and check out some options including -A
In reply to Re: How to get previous line of the file while processing current line in while loop
by Anonymous Monk
in thread How to get previous line of the file while processing current line in while loop
by shan_emails
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |