0

i wanna execute ls command inplace of the output being "your name is ls" is there a way to do it ?

read -p "name??" name echo "your name is $name" 
2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – CommunityBot
    CommentedDec 22, 2023 at 18:41
  • Bash (and other Posix shells) should be pretty immune to this, especially when the variable is contained within quotes.
    – Adam Katz
    CommentedDec 22, 2023 at 20:58

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.