<?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: Unalbe to remove &amp;quot;tab&amp;quot; character using &amp;quot;sed&amp;quot; in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144356#M93433</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: &amp;gt;JRF: Not all 'sed' variations support the '\t' escape character.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: I don't see it documented in sed(1), or ed(1) or in regexp(5).&lt;BR /&gt;&lt;BR /&gt;My remark was based both on experience and on the reference "...that the only C-like backslash sequences that you can portably assume to be interpreted are \n and \\; in particular \t is not portable, and matches a `t' under most implementations of sed, rather than a tab character."&lt;BR /&gt;&lt;BR /&gt;...from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/sed/manual/sed.html" target="_blank"&gt;http://www.gnu.org/software/sed/manual/sed.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I too thought about suggesting the '[:space:]' character class, but rejected that since the author specifically asked about the '\t' escape and not the more generalized "whitespace" (space, tab, etc.).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Feb 2008 13:49:04 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-02-14T13:49:04Z</dc:date>
    <item>
      <title>Unalbe to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144353#M93430</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Trying to remove a tab character using sed as follows.&lt;BR /&gt;&lt;BR /&gt;sed 's/[ \t]*$//' file_name.txt &lt;BR /&gt;&lt;BR /&gt;But it is not removing the tab space as expected. To remove the tab space, again ran the sed as follows.&lt;BR /&gt;&lt;BR /&gt;sed 's/[   ]*$//' file_name.txt ( here insted of "\t" used the tab key .&lt;BR /&gt;&lt;BR /&gt;Can anybody help to resolve this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Raghu.</description>
      <pubDate>Wed, 13 Feb 2008 11:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144353#M93430</guid>
      <dc:creator>Raghu Chikkamenahalli</dc:creator>
      <dc:date>2008-02-13T11:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unalbe to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144354#M93431</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Not all 'sed' variations support the '\t' escape character.&lt;BR /&gt;&lt;BR /&gt;Using the TAB key as you did is valid.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 13 Feb 2008 12:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144354#M93431</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-13T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144355#M93432</link>
      <description>&lt;P&gt;&amp;gt;JRF: Not all 'sed' variations support the '\t' escape character.&lt;BR /&gt;&lt;BR /&gt;I don't see it documented in sed(1), or ed(1) or in regexp(5).&lt;BR /&gt;&lt;BR /&gt;tr(1) mentions it takes \ then octal digits.&lt;BR /&gt;&lt;BR /&gt;You could use a character class:&lt;BR /&gt;sed 's/[:space:]*$//' file_name.txt&lt;BR /&gt;Or:&lt;BR /&gt;$ sed -e "s/$(echo "[ \t]\c")\*$//" file_name.txt&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 20:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144355#M93432</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-17T20:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unalbe to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144356#M93433</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: &amp;gt;JRF: Not all 'sed' variations support the '\t' escape character.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: I don't see it documented in sed(1), or ed(1) or in regexp(5).&lt;BR /&gt;&lt;BR /&gt;My remark was based both on experience and on the reference "...that the only C-like backslash sequences that you can portably assume to be interpreted are \n and \\; in particular \t is not portable, and matches a `t' under most implementations of sed, rather than a tab character."&lt;BR /&gt;&lt;BR /&gt;...from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/sed/manual/sed.html" target="_blank"&gt;http://www.gnu.org/software/sed/manual/sed.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I too thought about suggesting the '[:space:]' character class, but rejected that since the author specifically asked about the '\t' escape and not the more generalized "whitespace" (space, tab, etc.).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Feb 2008 13:49:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144356#M93433</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-14T13:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144357#M93434</link>
      <description>&lt;P&gt;&amp;gt;JFF: My remark was based both on experience and on the reference&lt;BR /&gt;&lt;BR /&gt;My comment about the documentation was that it didn't mention allowing it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I too thought about suggesting the '[:space:]' character class,&lt;BR /&gt;&lt;BR /&gt;I suggested it since the above RE had a space AND a tab, so why not go for broke. :-)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2011 20:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144357#M93434</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-17T20:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unalbe to remove "tab" character using "sed"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144358#M93435</link>
      <description>Hello JRF,&lt;BR /&gt;Thanks for addressing the problem. It helpmed to resolve the issue.&lt;BR /&gt;regards,&lt;BR /&gt;raghu.</description>
      <pubDate>Fri, 15 Feb 2008 07:25:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unalbe-to-remove-quot-tab-quot-character-using-quot-sed-quot/m-p/4144358#M93435</guid>
      <dc:creator>Raghu Chikkamenahalli</dc:creator>
      <dc:date>2008-02-15T07:25:10Z</dc:date>
    </item>
  </channel>
</rss>

