<?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 Unix korn shell scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-korn-shell-scripting/m-p/2550524#M724899</link>
    <description>&lt;P&gt;I left my scripting book at work and need a quick script to read in my text file and put the numbers in order which aren't necessarily at the beginning of the line. For instance, the text file looks like this:&lt;BR /&gt;&lt;BR /&gt;Me9999ne&lt;BR /&gt;dog189&lt;BR /&gt;Horse8454&lt;BR /&gt;&lt;BR /&gt;I want the new file to look like this:&lt;BR /&gt;Dog189&lt;BR /&gt;Horse8454&lt;BR /&gt;Me9999&lt;BR /&gt;&lt;BR /&gt;Can someone please help me out here?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.This thread has been moved from &amp;nbsp;Archived Desktops and Workstations Boards&amp;gt;general to HP-UX &amp;gt; languages-HP Forums Moderator&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 03:26:06 GMT</pubDate>
    <dc:creator>Kerilyn O'Donnell</dc:creator>
    <dc:date>2013-02-19T03:26:06Z</dc:date>
    <item>
      <title>Unix korn shell scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-korn-shell-scripting/m-p/2550524#M724899</link>
      <description>&lt;P&gt;I left my scripting book at work and need a quick script to read in my text file and put the numbers in order which aren't necessarily at the beginning of the line. For instance, the text file looks like this:&lt;BR /&gt;&lt;BR /&gt;Me9999ne&lt;BR /&gt;dog189&lt;BR /&gt;Horse8454&lt;BR /&gt;&lt;BR /&gt;I want the new file to look like this:&lt;BR /&gt;Dog189&lt;BR /&gt;Horse8454&lt;BR /&gt;Me9999&lt;BR /&gt;&lt;BR /&gt;Can someone please help me out here?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.This thread has been moved from &amp;nbsp;Archived Desktops and Workstations Boards&amp;gt;general to HP-UX &amp;gt; languages-HP Forums Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 03:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-korn-shell-scripting/m-p/2550524#M724899</guid>
      <dc:creator>Kerilyn O'Donnell</dc:creator>
      <dc:date>2013-02-19T03:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unix korn shell scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-korn-shell-scripting/m-p/2550525#M724900</link>
      <description>Hi Kerilyn,&lt;BR /&gt;&lt;BR /&gt;I'm sorry, but I think the korn shell is not a good tool for your special case. I had a look an sed, awk, and tr, but I think if one of these tools would solve your problem, a lot of brain storming has to be done unless you're a very good expert in using regular expressions. See regexp(5).&lt;BR /&gt;&lt;BR /&gt;If you have perl, try to use it. You need a script that examines each occurence in your file letter by letter (testing with e.g. \d or \D), and produces the desired output, and sorting it with the sort function before printing.&lt;BR /&gt;&lt;BR /&gt;Maybe, others have better ideas.&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Tue, 10 Jul 2001 16:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-korn-shell-scripting/m-p/2550525#M724900</guid>
      <dc:creator>Thomas Schler_1</dc:creator>
      <dc:date>2001-07-10T16:53:51Z</dc:date>
    </item>
  </channel>
</rss>

