echo "PRIVMSG $2 :$1: The available modules I have are:" output=$(ls modules/ | sed "s/.sh//") echo "PRIVMSG $2 :$1: "$output