<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: embed backslash in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312748#M339646</link>
    <description>You can use ' instead of ".</description>
    <pubDate>Tue, 25 Nov 2008 16:42:16 GMT</pubDate>
    <dc:creator>Tingli</dc:creator>
    <dc:date>2008-11-25T16:42:16Z</dc:date>
    <item>
      <title>embed backslash in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312747#M339645</link>
      <description>&lt;!--!*#--&gt;I am trying create a shell script that appends users to smbusers.&lt;BR /&gt;&lt;BR /&gt;The added line should look like:&lt;BR /&gt;&lt;BR /&gt;8_charid = domain\long_userid&lt;BR /&gt;&lt;BR /&gt;I would think that this line should work:&lt;BR /&gt;&lt;BR /&gt;echo $1" = domain\\"$2 &amp;gt;&amp;gt; /etc/samba/smbusers&lt;BR /&gt;&lt;BR /&gt;It doesn't always work.  The most interesting case is if $2 starts with an 'n', it is interpreted as a carriage return.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;# test,sh mmmm nnnn&lt;BR /&gt;&lt;BR /&gt;# cat smbusers&lt;BR /&gt;mmmm = domain&lt;BR /&gt;nnn&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;I would have expected it to be:&lt;BR /&gt;&lt;BR /&gt;# test,sh mmmm nnnn&lt;BR /&gt;&lt;BR /&gt;# cat smbusers&lt;BR /&gt;mmmm = domain\nnnn</description>
      <pubDate>Tue, 25 Nov 2008 16:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312747#M339645</guid>
      <dc:creator>Timothy Nibbe</dc:creator>
      <dc:date>2008-11-25T16:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: embed backslash in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312748#M339646</link>
      <description>You can use ' instead of ".</description>
      <pubDate>Tue, 25 Nov 2008 16:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312748#M339646</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2008-11-25T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: embed backslash in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312749#M339647</link>
      <description>Thanks, the ' instead of " worked.</description>
      <pubDate>Tue, 25 Nov 2008 16:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/embed-backslash-in-shell-script/m-p/4312749#M339647</guid>
      <dc:creator>Timothy Nibbe</dc:creator>
      <dc:date>2008-11-25T16:53:27Z</dc:date>
    </item>
  </channel>
</rss>

