This question evaluates proficiency in shell scripting, command-line argument validation, file existence and permission checks, parsing a license value from a file, and timestamp formatting.
Write a shell script named script.sh that is invoked as: ./script.sh <username> <path_of_file>. It must print a single line formatted exactly as: <timestamp> <license> user@hostname. Use the supplied username and the current machine’s hostname, and parse the license value from the file at <path_of_file>. Include argument validation (missing args), file existence/permission checks, and clearly define the timestamp format you choose.