You are given a Python script /app/merge logs.py that merges multiple timestamped log files into a single…
You are given a Python script /app/merge logs.py that merges multiple timestamped log files into a single…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - The script is invoked as: python3 /app/merge logs.py <output file <input file1 <input…
The task
Exact I/O contract: - The script is invoked as: `python3 /app/merge_logs.py <output_file> <input_file1> [<input_file2> ...]` - Each input file contains zero or more lines. Each non-empty line has format: `[YYYY-MM-DD HH:MM:SS.microseconds] message` - The timestamp is in UTC. Microseconds are exactly 6 digits,…
Part of ai-and/termgrade-environments.