#!/bin/bash # Accept command from input cmd="$1" # Execute the command and capture the output output=$(eval "$cmd") # Print the output echo "$output"