<?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: Deleting a space in a line during a for ... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523383#M367341</link>
    <description>thanks all for your support ..&lt;BR /&gt;&lt;BR /&gt;this worked:&lt;BR /&gt;for x in `cat temp1.${a}| tr -d " "`&lt;BR /&gt;&lt;BR /&gt;the other examples also worked ..&lt;BR /&gt;thank you so much.&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Oct 2009 16:44:58 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2009-10-29T16:44:58Z</dc:date>
    <item>
      <title>Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523377#M367335</link>
      <description>Hi ..&lt;BR /&gt;this is my program..&lt;BR /&gt;&lt;BR /&gt;   for x in `cat temp1.${a}`&lt;BR /&gt;   do&lt;BR /&gt;    echo "this is the line $x"&lt;BR /&gt;   done&lt;BR /&gt;this is the file temp1.${a}:&lt;BR /&gt;=======================&lt;BR /&gt;Daniela Miranda&lt;BR /&gt;PedroRamirez Lopez&lt;BR /&gt;ArturoLimaper&lt;BR /&gt;=======================&lt;BR /&gt;how can i delete the space when i am taking the line during the for:&lt;BR /&gt;&lt;BR /&gt;   for x in `cat temp1.${a}`&lt;BR /&gt;&lt;BR /&gt;i need it be showed the line with no spaces as:&lt;BR /&gt;.....................&lt;BR /&gt;DanielaMiranda&lt;BR /&gt;PedroRamirezLopez&lt;BR /&gt;ArturoLimaper&lt;BR /&gt;.....................&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;please let me know.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Manuales.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Oct 2009 23:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523377#M367335</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2009-10-28T23:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523378#M367336</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;One way:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read LINE&lt;BR /&gt;do&lt;BR /&gt;    X=$(echo ${LINE}|tr -d " ")&lt;BR /&gt;    echo "this is the line: ${X}"&lt;BR /&gt;done &amp;lt; temp1/${a}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Oct 2009 23:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523378#M367336</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-28T23:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523379#M367337</link>
      <description>I would like you use&lt;BR /&gt;&lt;BR /&gt;=======================&lt;BR /&gt;Daniela_Miranda&lt;BR /&gt;PedroRamirez_Lopez&lt;BR /&gt;Arturo_Limaper&lt;BR /&gt;=======================&lt;BR /&gt;&lt;BR /&gt;instud of space i will look for _ in script to delete&lt;BR /&gt;&lt;BR /&gt;Hope this Helps</description>
      <pubDate>Wed, 28 Oct 2009 23:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523379#M367337</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-10-28T23:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523380#M367338</link>
      <description>Manuales,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for x in `cat temp1.${a}| tr -d " "`&lt;BR /&gt;do&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Wed, 28 Oct 2009 23:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523380#M367338</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-28T23:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523381#M367339</link>
      <description>&lt;!--!*#--&gt;&amp;gt;how can I delete the space&lt;BR /&gt;&lt;BR /&gt;If you want to do other changes, you can modify JRF's solution to use sed(1):&lt;BR /&gt;while read LINE; do&lt;BR /&gt;   X=$(echo ${LINE} | sed -e 's/ //g')&lt;BR /&gt;   echo "this is the line: ${X}"&lt;BR /&gt;done &amp;lt; temp1/${a}&lt;BR /&gt;&lt;BR /&gt;Or change Raj's to remove that evil cat:&lt;BR /&gt;for x in $(tr -d " " &amp;lt; temp1.${a}); do&lt;BR /&gt;&lt;BR /&gt;Note if there are other whitespaces in the lines, each $x will not contain the whole line.</description>
      <pubDate>Thu, 29 Oct 2009 08:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523381#M367339</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-29T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523382#M367340</link>
      <description>Thx Dennis, for puting the evil cat under subshell parenthesis , to parse it corrctly. &lt;BR /&gt;&lt;BR /&gt;(0 or 1 pts. only pls. )</description>
      <pubDate>Thu, 29 Oct 2009 09:19:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523382#M367340</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-29T09:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a space in a line during a for ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523383#M367341</link>
      <description>thanks all for your support ..&lt;BR /&gt;&lt;BR /&gt;this worked:&lt;BR /&gt;for x in `cat temp1.${a}| tr -d " "`&lt;BR /&gt;&lt;BR /&gt;the other examples also worked ..&lt;BR /&gt;thank you so much.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Oct 2009 16:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleting-a-space-in-a-line-during-a-for/m-p/4523383#M367341</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2009-10-29T16:44:58Z</dc:date>
    </item>
  </channel>
</rss>

