Article 5BYSW To enclose a string with quote pair (or its double) in a bigger string

To enclose a string with quote pair (or its double) in a bigger string

by
BudiKusasi
from LinuxQuestions.org on (#5BYSW)
How to enclose a string with quote pair, or its double, in a bigger string from the Bash expansion ?

Code:u=`echo fo* b* fo*b`
echo $u

$ foo bar foobar foo bar
the last is supposed to be a space contained string enclosed with quote pair, or its double, so

$ foo bar foobar 'foo bar'i.e
Quote:
u="foo bar foobar 'foo bar'"
Thanks beforelatest?d=yIl2AUoC8zA latest?i=BLyGhEGLqEg:yBMk3BGnwhY:F7zBnMy latest?i=BLyGhEGLqEg:yBMk3BGnwhY:V_sGLiP latest?d=qj6IDK7rITs latest?i=BLyGhEGLqEg:yBMk3BGnwhY:gIN9vFwBLyGhEGLqEg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments