{
    "id": "3680a5ee-6870-426a-a997-eba929a0d25c",
    "snapshot": "libreoffice_calc",
    "instruction": "I have file1.xlsx and file2.ods on the Desktop and each has one column. Help me use only the command line to merge these two columns into one LibreOffice Calc file called output.csv and open it from terminal.",
    "source": "https://unix.stackexchange.com/questions/510850/how-to-open-calc-from-terminal-and-insert-files",
    "config": [
        {
            "type": "download",
            "parameters": {
                "files": [
                    {
                        "url": "https://drive.usercontent.google.com/download?id=1ofMPSBPXtt0h6t0arjYo0GMtKAAhfEPz&export=download",
                        "path": "/home/user/Desktop/file1.xlsx"
                    },
                    {
                        "url": "https://drive.usercontent.google.com/download?id=15QOxr0_MiHR80ppMX02aHnnsWs25aXgZ&export=download",
                        "path": "/home/user/Desktop/file2.ods"
                    }
                ]
            }
        },
        {
            "type": "launch",
            "parameters": {
                "command": [
                    "gnome-terminal",
                    "--maximize",
                    "--working-directory=/home/user/Desktop"
                ]
            }
        }
    ],
    "trajectory": "trajectories/",
    "related_apps": [
        "libreoffice_calc",
        "terminal"
    ],
    "evaluator": {
        "func": ["check_include_exclude", "compare_csv"],
        "result": [
            {
                "type": "vm_command_line",
                "command": [
                    "/bin/bash",
                    "-c",
                    "output=$(ps aux | grep \"[s]office\" | awk '{print $7}' | grep -E \"pts/|tty\"); if [ -z \"$output\" ]; then echo \"use no terminal\"; else echo \"use terminal\"; fi;"
                ]
            },
            {
                "type": "vm_file",
                "path": "/home/user/Desktop/output.csv",
                "dest": "output.csv"
            }
        ],
        "expected": [
            {
                "type": "rule",
                "rules": {
                    "include": [
                        "use terminal"
                    ]
                }
            },
            {
                "type": "cloud_file",
                "path": "https://drive.usercontent.google.com/download?id=1OBQXIJ06HQeodaCwU7z0Kq_-d3YuGNqE&export=download",
                "dest": "output_gold.csv"
            }
        ]
    }
}