<?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: echo and backslash characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824085#M87236</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.&lt;BR /&gt;&lt;BR /&gt;The ATTLINE variable is being read from a file so I can't control what characters it contains.&lt;BR /&gt;&lt;BR /&gt;However, Rod's suggestion worked !&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;&lt;BR /&gt;Adrian.&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Oct 2002 18:32:18 GMT</pubDate>
    <dc:creator>Adrian Brown_1</dc:creator>
    <dc:date>2002-10-11T18:32:18Z</dc:date>
    <item>
      <title>echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824081#M87232</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm writing a ksh script with the following line:&lt;BR /&gt;&lt;BR /&gt;echo $ATTLINE &amp;gt;&amp;gt; $TEMPFILENAME&lt;BR /&gt;&lt;BR /&gt;The variable $ATTLINE contains a string of characters which can include consequtive backslash characters i.e. \&lt;BR /&gt;The echo command sees the \\ as an escape sequence and I lose one of the backslash characters thus corrupting my file.&lt;BR /&gt;&lt;BR /&gt;Is there a way of stopping echo from doing this ? or are there any other commands I can use to append the variable to the file without losing characters ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Adrian.</description>
      <pubDate>Fri, 11 Oct 2002 15:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824081#M87232</guid>
      <dc:creator>Adrian Brown_1</dc:creator>
      <dc:date>2002-10-11T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824082#M87233</link>
      <description>The -r option on the ksh print command will leave backslashes alone.&lt;BR /&gt;&lt;BR /&gt;print -r $ATTLINE &amp;gt;&amp;gt; $TEMPFILENAME&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 11 Oct 2002 15:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824082#M87233</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-10-11T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824083#M87234</link>
      <description>&lt;BR /&gt;How do you assign the value of ATTLINE ?? Maybe you can correct the issue there?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 11 Oct 2002 16:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824083#M87234</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-11T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824084#M87235</link>
      <description>&lt;BR /&gt;One option is to use the octal equivalent \0134 for the backslash.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;ATTLINE="\0134\0134Yes\0134"&lt;BR /&gt;echo "${ATTLINE}"&lt;BR /&gt;&lt;BR /&gt;P.S. The backslashes may be silently swallowed by the &lt;BR /&gt;Webserver engine so each of the 0134's should be preceded by a backslash character.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 16:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824084#M87235</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-10-11T16:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824085#M87236</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.&lt;BR /&gt;&lt;BR /&gt;The ATTLINE variable is being read from a file so I can't control what characters it contains.&lt;BR /&gt;&lt;BR /&gt;However, Rod's suggestion worked !&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;&lt;BR /&gt;Adrian.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 18:32:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824085#M87236</guid>
      <dc:creator>Adrian Brown_1</dc:creator>
      <dc:date>2002-10-11T18:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: echo and backslash characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824086#M87237</link>
      <description>Well, if it's begin read from a file then it's even simpler:&lt;BR /&gt;&lt;BR /&gt;cat ${ATTFILE} &amp;gt;&amp;gt; ${TEMPFILENAME}&lt;BR /&gt;&lt;BR /&gt;there is no need for echo at all.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Oct 2002 18:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-and-backslash-characters/m-p/2824086#M87237</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-10-11T18:37:34Z</dc:date>
    </item>
  </channel>
</rss>

