After readfile can I enumerate the lines using foreach command? I want to read a file line by line, then write some lines out. For example, I have the following lines:
x =1 COMMENT START this is for test COMMENT END y =1
but I only want to write out
x =1 y =1
Please sign in to leave a comment.