2

How do you use wildcards or any other special character in quotes, single quotes or backtick?

and

How do you make it so Linux doesn't take it literally? For example

echo "This is my list of file ls -l"

I know their is another way of doing it for example

echo "This is my list of file" ; ls -l

But I'm trying to keep the ls -l inside the echo.

user6260366
  • 47
  • 1
  • 7
  • When I type in **echo "This is my life of file ls -l"** . . .I'm expecting to see **echo "This is my list of file" ; ls -l** I'm not expecting it to print out **This is my list of file ls -l** so, I'm basically trying to figure out what special characters can I use within the **" "** or **' '** or **` `** so I can perform **ls -l** while in quotation. – user6260366 Apr 28 '16 at 17:22

1 Answers1

0

You could use:

echo "This is my list of file $(ls -l)"

This will print the output of ls -l inside the echo statement.

Darney
  • 430
  • 4
  • 13