<?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 Whitespace stripping.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739106#M946522</link>
    <description>hmmm, sorry bad definition:&lt;BR /&gt;It's not really echo that drops the duplicate blanks, but rather the shell.&lt;BR /&gt;echo uses arguments like any other program, so to preserve blanks in the arguments, add quotes.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
    <pubDate>Thu, 06 Jun 2002 12:57:39 GMT</pubDate>
    <dc:creator>Thierry Poels_1</dc:creator>
    <dc:date>2002-06-06T12:57:39Z</dc:date>
    <item>
      <title>echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739104#M946520</link>
      <description>execute &lt;BR /&gt;^^^^^^^&lt;BR /&gt;date +%b" "%e" "%I:%M:&lt;BR /&gt;&lt;BR /&gt;and you get something like:&lt;BR /&gt;&lt;BR /&gt;               Jun  6 08:38:&lt;BR /&gt;&lt;BR /&gt;(depending on what day and time you execute it)&lt;BR /&gt;&lt;BR /&gt;Now execute:&lt;BR /&gt;^^^^^^^^^^^^&lt;BR /&gt;echo `date +%b" "%e" "%I:%M:` &lt;BR /&gt;  or&lt;BR /&gt;echo $(date +%b" "%e" "%I:%M:)&lt;BR /&gt;&lt;BR /&gt;and you get:&lt;BR /&gt;&lt;BR /&gt;               Jun 6 08:38:&lt;BR /&gt;&lt;BR /&gt;Did you notice the difference in the output?  Look again, side by side:&lt;BR /&gt;&lt;BR /&gt;************************&lt;BR /&gt;Jun  6 08:38:&lt;BR /&gt;Jun 6 08:38&lt;BR /&gt;************************&lt;BR /&gt;&lt;BR /&gt;Why is my whitespace infront of the day being stripped away when echo (or print) prints the output of the date command!!?&lt;BR /&gt;&lt;BR /&gt;rab&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 12:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739104#M946520</guid>
      <dc:creator>Richard Briggs</dc:creator>
      <dc:date>2002-06-06T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739105#M946521</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;echo drops multiple whitespaces.&lt;BR /&gt;&lt;BR /&gt;echo `date +%b" "%e" "%I:%M:`&lt;BR /&gt;results in :&lt;BR /&gt;echo Jun##6#03:46:&lt;BR /&gt;(replace blanks by # for visibility)&lt;BR /&gt;which outputs:&lt;BR /&gt;Jun#6#03:46:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to preserve the blanks you should add quotes:&lt;BR /&gt;&lt;BR /&gt;echo "`date +%b' '%e' '%I:%M:`"&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 12:53:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739105#M946521</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2002-06-06T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739106#M946522</link>
      <description>hmmm, sorry bad definition:&lt;BR /&gt;It's not really echo that drops the duplicate blanks, but rather the shell.&lt;BR /&gt;echo uses arguments like any other program, so to preserve blanks in the arguments, add quotes.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Thu, 06 Jun 2002 12:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739106#M946522</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2002-06-06T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739107#M946523</link>
      <description>thanks!</description>
      <pubDate>Thu, 06 Jun 2002 12:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739107#M946523</guid>
      <dc:creator>Richard Briggs</dc:creator>
      <dc:date>2002-06-06T12:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739108#M946524</link>
      <description>even this web post stripped the white spaces!!!  sheesh.&lt;BR /&gt;&lt;BR /&gt;;-)</description>
      <pubDate>Thu, 06 Jun 2002 13:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739108#M946524</guid>
      <dc:creator>Richard Briggs</dc:creator>
      <dc:date>2002-06-06T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: echo Whitespace stripping....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739109#M946525</link>
      <description>Yes, I hate it when the software is too smart for its own good. I can't stand Microsoft Word!!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 06 Jun 2002 18:23:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/echo-whitespace-stripping/m-p/2739109#M946525</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-06T18:23:29Z</dc:date>
    </item>
  </channel>
</rss>

