Hi, I'm new to Linux and starting to learn it at work. I need to search many files for a string "USER HELP" if that exists, i need to check the next line down to see if it has "USERHELP=1" under neith it then if it does, pip to a file, have tried and am lost now..
all I have got to is: find . -name "*4gl" | xargs grep "USER HELP" > results
but i think i need a loop..