I need to write a script that compiles some pascal programme, launches it and than deletes all lines of the output containing anything else than numbers and spaces. After that, I should print the first five lines.
It's a homework so we're allowed to use just this basic commands.
I know how to compile and launch the program. I also know how to print the first five lines in the end. But I'm stuck at deleting the lines.