<?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: sed problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919815#M109232</link>
    <description>global line should read&lt;BR /&gt;&lt;BR /&gt;:g/\//s//&lt;CTRL-V&gt;&lt;TAB&gt;/gp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I had one too many "/"'s sorry&lt;BR /&gt;&lt;/TAB&gt;&lt;/CTRL-V&gt;</description>
    <pubDate>Wed, 05 Mar 2003 15:32:10 GMT</pubDate>
    <dc:creator>Richard Hood</dc:creator>
    <dc:date>2003-03-05T15:32:10Z</dc:date>
    <item>
      <title>sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919808#M109225</link>
      <description>I have a problem where I would like to replace / with tabs. I am using &lt;BR /&gt;&lt;BR /&gt;sed s/[/]/&lt;TAB&gt;/g&lt;BR /&gt;&lt;BR /&gt;but hitting the tab key does not work. Any ideas why not? Or how else I might do this? &lt;BR /&gt;Thanks!&lt;/TAB&gt;</description>
      <pubDate>Wed, 05 Mar 2003 14:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919808#M109225</guid>
      <dc:creator>Michael Treadwell_1</dc:creator>
      <dc:date>2003-03-05T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919809#M109226</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;I think you might just be missing quotes.  This works for me:&lt;BR /&gt;&lt;BR /&gt;sed 's+/+  +g' filename&lt;BR /&gt;&lt;BR /&gt;where I just pressed that tab key between the 2nd pair of "+" chars.&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Wed, 05 Mar 2003 14:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919809#M109226</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-03-05T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919810#M109227</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;simply press the TAB-Button instead of &lt;TAB&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;/TAB&gt;</description>
      <pubDate>Wed, 05 Mar 2003 14:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919810#M109227</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-03-05T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919811#M109228</link>
      <description>Robin &amp;amp; Christian,&lt;BR /&gt;&lt;BR /&gt;I am hitting the actual tab key and it does not work, either in my example or in Robin's.</description>
      <pubDate>Wed, 05 Mar 2003 15:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919811#M109228</guid>
      <dc:creator>Michael Treadwell_1</dc:creator>
      <dc:date>2003-03-05T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919812#M109229</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;Hitting the tab key should work.  Try this below:&lt;BR /&gt;&lt;BR /&gt;# echo "field1/field2" | sed 's:/:&lt;TAB_HERE&gt;:'&lt;BR /&gt;&lt;BR /&gt;Hai&lt;/TAB_HERE&gt;</description>
      <pubDate>Wed, 05 Mar 2003 15:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919812#M109229</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-03-05T15:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919813#M109230</link>
      <description>You can do the substitution with vi.&lt;BR /&gt;&lt;BR /&gt;vi &lt;FILENAME&gt;&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;:g/\///s//&lt;CTRL-V&gt;&lt;TAB&gt;/gp&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will globally change the "/" to a &lt;TAB&gt;&lt;BR /&gt;&lt;BR /&gt;You will need to :x! to save and exit vi&lt;BR /&gt;&lt;BR /&gt;&lt;/TAB&gt;&lt;/ENTER&gt;&lt;/TAB&gt;&lt;/CTRL-V&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Wed, 05 Mar 2003 15:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919813#M109230</guid>
      <dc:creator>Richard Hood</dc:creator>
      <dc:date>2003-03-05T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919814#M109231</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;What does this show:&lt;BR /&gt;&lt;BR /&gt;echo a/b | sed 's+/+  +g' | od -c&lt;BR /&gt;&lt;BR /&gt;I see:&lt;BR /&gt;&lt;BR /&gt;# echo a/b | sed 's+/+  +g' | od -c&lt;BR /&gt;0000000   a  \t   b  \n&lt;BR /&gt;0000004&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Wed, 05 Mar 2003 15:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919814#M109231</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-03-05T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919815#M109232</link>
      <description>global line should read&lt;BR /&gt;&lt;BR /&gt;:g/\//s//&lt;CTRL-V&gt;&lt;TAB&gt;/gp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I had one too many "/"'s sorry&lt;BR /&gt;&lt;/TAB&gt;&lt;/CTRL-V&gt;</description>
      <pubDate>Wed, 05 Mar 2003 15:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919815#M109232</guid>
      <dc:creator>Richard Hood</dc:creator>
      <dc:date>2003-03-05T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919816#M109233</link>
      <description>This works for me (ie using the tab key).&lt;BR /&gt;# cat myfile | sed 's/\//&lt;TAB&gt;/g'&lt;/TAB&gt;</description>
      <pubDate>Wed, 05 Mar 2003 15:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919816#M109233</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-05T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919817#M109234</link>
      <description>you can also try to put the ctrl-v before the ,tab - on the sed line -- either way works for me.  as well..</description>
      <pubDate>Wed, 05 Mar 2003 15:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919817#M109234</guid>
      <dc:creator>Richard Hood</dc:creator>
      <dc:date>2003-03-05T15:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919818#M109235</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Robin's syntax works fine.  Don't copy-and-paste it.  Try replicating the TAB character both with the tab key and by pressing "control", "v" and then "I".  This can be done at commandline and should act identically to pressing the tab key.  In fact, you should see your cursor move.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Mar 2003 15:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919818#M109235</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-05T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919819#M109236</link>
      <description>sed 's /\/&lt;TAB&gt;/g'&lt;/TAB&gt;</description>
      <pubDate>Wed, 05 Mar 2003 16:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919819#M109236</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-03-05T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919820#M109237</link>
      <description>sed 's /\//&lt;TAB&gt;/g'&lt;/TAB&gt;</description>
      <pubDate>Wed, 05 Mar 2003 16:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919820#M109237</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-03-05T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919821#M109238</link>
      <description>sorry for the almost the same double post.... i caught my type-o just as I hit send on the first one.</description>
      <pubDate>Wed, 05 Mar 2003 16:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919821#M109238</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-03-05T16:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919822#M109239</link>
      <description>Robin, I get the following:&lt;BR /&gt;&lt;BR /&gt;[immpact:immpacts]:~/bin&lt;BR /&gt;bash-2.05$ echo a/b | sed 's+/+ +g' | od -c &lt;BR /&gt;&lt;BR /&gt;0000000   a       b  \n&lt;BR /&gt;0000004&lt;BR /&gt;&lt;BR /&gt;[immpact:immpacts]:~/bin&lt;BR /&gt;bash-2.05$ &lt;BR /&gt;&lt;BR /&gt;James, when I type ctrl-v then I, I get an I on the line.&lt;BR /&gt;&lt;BR /&gt;Everyone else,&lt;BR /&gt;  Anything requiring the tab key does not seem to work. At the console, the tab key doesn't do anything. Might this be a shell issue? The account I'm working under uses bash.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Mar 2003 18:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919822#M109239</guid>
      <dc:creator>Michael Treadwell_1</dc:creator>
      <dc:date>2003-03-05T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919823#M109240</link>
      <description>Duh! It's a shell issue of some sort. As the user under bash, no tab key. As root under sh, all of your examples work!&lt;BR /&gt;&lt;BR /&gt;Anyone have a clue what could be different in the enviroments to cause tab not to work? If it matters, this is a k class running 10.20.</description>
      <pubDate>Wed, 05 Mar 2003 18:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919823#M109240</guid>
      <dc:creator>Michael Treadwell_1</dc:creator>
      <dc:date>2003-03-05T18:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919824#M109241</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I got this example to work in my bash shell [on my Linux box]:&lt;BR /&gt;&lt;BR /&gt;sed 's#/#\t#g'&lt;BR /&gt;&lt;BR /&gt;The slashes were a little confusing in the substitution syntax, so I replaced them with the '#' sign.  For the tab character, I used the \t expression.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Mar 2003 19:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919824#M109241</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-03-05T19:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919825#M109242</link>
      <description>Oops.  Scratch my previous post.  It doesn't work.  But I did get it to work with the control-v method.  &lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Mar 2003 19:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919825#M109242</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-03-05T19:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919826#M109243</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;John P:  The '\t' to represent a tab character doesn't work in all 'sed' versions.  It does in gnu's 'sed' by not the HP version, for instance.&lt;BR /&gt;&lt;BR /&gt;When using the "control, v, I" key sequence to generate a tab, press "ctrl", then press "v" and release that key, and finally while holding down the "ctrl" key, press "I".  You should not see a visible "I" unless is appears as "^I".  In my case, blank space appears and the cursor moves.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Mar 2003 19:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919826#M109243</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-05T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: sed problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919827#M109244</link>
      <description>I did have this problem (with shells) between by linux box (bash) and my Unix server (ksh).  I was developting a script on my linux box to eventually run on my unix server.... i couldn't get it to work in the bash prompt but as soon as i tried in on my ksh shell everything worked.</description>
      <pubDate>Wed, 05 Mar 2003 20:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-problem/m-p/2919827#M109244</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-03-05T20:03:16Z</dc:date>
    </item>
  </channel>
</rss>

