hj / execute_command.sh
asv7j's picture
Create execute_command.sh
4248d19 verified
raw
history blame contribute delete
153 Bytes
#!/bin/bash
# Accept command from input
cmd="$1"
# Execute the command and capture the output
output=$(eval "$cmd")
# Print the output
echo "$output"