would like to have a shell script which should read a huge file line by line and search for two strings. If it finds either one of the string then it has to write to another file
1. Shell script to accept source file name an argument.
2. Search two strings, If string1 is in current line then write it to a file. (No need to need search for string2 on the same line)
3. If string2 is in current line, then append it to the same above file
string1 and string2 cannot be on the same line.
Thanks in advance.