Re: Simple bash question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Sep 28, 2018 at 09:39:29AM -0400, Jerry Geis wrote:
> I am calling a bash script and passing in somestring that includes a "$"
> 
> myscript   "$plusmore"

myscript '$plusmore' 

should work. note the single quotes.

If you can't use single quotes, I don't know how to use it,, but there
is probably something more arcane that would work, were one a guru.

Have you read thru 'man bash', carefully, looking for informatiion on
quoting?

there is also a document named Advanced Bash Scripting that gives lots
of gory details about doing odd things in Bash that might be helpful.
Google is your friend.

Fred

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx ----------------------------
                    Do you not know? Have you not heard? 
    The LORD is the everlasting God, the Creator of the ends of the earth. 
  He will not grow tired or weary, and his understanding no one can fathom.
----------------------------- Isaiah 40:28 (niv) -----------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux