<?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: command help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800720#M81879</link>
    <description>I suggest that you takes Tom's solution and then pipe it through another sed to get rid of the leading space.&lt;BR /&gt;&lt;BR /&gt;sed -e 's/\([A-Z]\)/ &amp;amp;/g' caps | sed -e 's/^ //'  &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Sep 2002 18:24:47 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-09-05T18:24:47Z</dc:date>
    <item>
      <title>command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800714#M81873</link>
      <description>I have a file that looks like this:&lt;BR /&gt;&lt;BR /&gt;BobMenefee&lt;BR /&gt;&lt;BR /&gt;I want it to look like this:&lt;BR /&gt;&lt;BR /&gt;Bob Menefee&lt;BR /&gt;_____________________________________________&lt;BR /&gt;My input file is called caps&lt;BR /&gt;I enter the following command:&lt;BR /&gt;&lt;BR /&gt;sed s/'[A-Z]'/' [a-z]'/g caps&lt;BR /&gt;&lt;BR /&gt;and I get&lt;BR /&gt;[a-z]ob [a-z]enefee&lt;BR /&gt;&lt;BR /&gt;Any ideas how to do this ?&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 18:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800714#M81873</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-09-05T18:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800715#M81874</link>
      <description>It is not a good idea to have spaces (or tabs) in you file names. Spaces/tabs have special meaning in the unix shells. You will have all sorts of problems trying to access the file.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 05 Sep 2002 18:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800715#M81874</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-09-05T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800716#M81875</link>
      <description>file name is called 'caps'&lt;BR /&gt;&lt;BR /&gt;the data in the file is 'BobMenefee'&lt;BR /&gt;&lt;BR /&gt;I want to use sed to change it to Bob Menefee.</description>
      <pubDate>Thu, 05 Sep 2002 18:15:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800716#M81875</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-09-05T18:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800717#M81876</link>
      <description>To put a blank before EVERY capital letter:&lt;BR /&gt;&lt;BR /&gt;sed -e "s/\([A-Z]\)/ &amp;amp;/g" caps&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 18:16:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800717#M81876</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-05T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800718#M81877</link>
      <description>Sorry, I misinterpreted your post:&lt;BR /&gt;&lt;BR /&gt;"I have a file that looks like this: &lt;BR /&gt;&lt;BR /&gt;BobMenefee &lt;BR /&gt;&lt;BR /&gt;I want it to look like this: &lt;BR /&gt;&lt;BR /&gt;Bob Menefee "&lt;BR /&gt;&lt;BR /&gt;Marty&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 18:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800718#M81877</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-09-05T18:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800719#M81878</link>
      <description>Tom,&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;I've only been trying this for about 2 hours. It took you 2 seconds. I hate people like you.......just kidding.&lt;BR /&gt;&lt;BR /&gt;Thanks a heck of a lot.&lt;BR /&gt;&lt;BR /&gt;Bob</description>
      <pubDate>Thu, 05 Sep 2002 18:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800719#M81878</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-09-05T18:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800720#M81879</link>
      <description>I suggest that you takes Tom's solution and then pipe it through another sed to get rid of the leading space.&lt;BR /&gt;&lt;BR /&gt;sed -e 's/\([A-Z]\)/ &amp;amp;/g' caps | sed -e 's/^ //'  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 18:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800720#M81879</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-09-05T18:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800721#M81880</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I thibk you cannot subsitute for the whole set it slef bcoz the logic will fail when it seraches for what to put ?&lt;BR /&gt;&lt;BR /&gt;may be you can try for each and then run the whole 26 times like this&lt;BR /&gt;&lt;BR /&gt;sed s/'A'/a/g&lt;BR /&gt;sed s/'B'/b/g&lt;BR /&gt;sed s/'C'/c/g&lt;BR /&gt;and so on&lt;BR /&gt;and then run this on the cpas file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Thu, 05 Sep 2002 18:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800721#M81880</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-09-05T18:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800722#M81881</link>
      <description>Yep me too , mis read the post &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Thu, 05 Sep 2002 18:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800722#M81881</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-09-05T18:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800723#M81882</link>
      <description>perl solution, do not add blanks if a blank is already there:&lt;BR /&gt;&lt;BR /&gt;perl -n -e '{s/([^ ])([A-Z])/$1 $2/;print}' caps</description>
      <pubDate>Thu, 05 Sep 2002 18:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800723#M81882</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-05T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800724#M81883</link>
      <description>forgot the global flag...&lt;BR /&gt;&lt;BR /&gt;perl -n -e '{s/([^ ])([A-Z])/$1 $2/g;print}' caps&lt;BR /&gt;&lt;BR /&gt;need more caffeine...&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 18:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800724#M81883</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-05T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: command help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800725#M81884</link>
      <description>Only add a space before a capital that currently has a lower case letter in front:&lt;BR /&gt;&lt;BR /&gt;# perl -pi -e 's/([a-z])([A-Z])/$1 $2/g' data_file</description>
      <pubDate>Fri, 06 Sep 2002 07:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-help/m-p/2800725#M81884</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-09-06T07:54:22Z</dc:date>
    </item>
  </channel>
</rss>

