exclude_strings_file_from_file
exclude_strings_file_from_file($infile,$excluding_file,$outfile,$timeout=COMMAND_TIME); - remove all lines from the file that exist in another file
The function accepts parameters as input:
$infile – path to the source file. It can be either absolute or relative (relative to the script folder).
$excluding_file – path to the file containing the lines to remove. It can be either absolute or relative (relative to the script folder).
$outfile – path to the file to write the result to. It can be either absolute or relative (relative to the script folder).
$timeout – the maximum time to perform this operation (in seconds), by default - 60 seconds. if the operation is not completed during this time, the script continues to run.
After testing, the function returns the result of its work to the script :
true – operation completed (boolean) false – operation failed (boolean)