<?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: Anyone for scripting? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2935999#M928810</link>
    <description>Hi Adam,&lt;BR /&gt;&lt;BR /&gt;Using sed:&lt;BR /&gt;&lt;BR /&gt;% echo abcdefghijkl | sed 's/\(^....\)...\(.*\)/\1zzz\2/'&lt;BR /&gt;abcdzzzhijkl&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
    <pubDate>Wed, 26 Mar 2003 11:17:43 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2003-03-26T11:17:43Z</dc:date>
    <item>
      <title>Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2935998#M928809</link>
      <description>I imagine one of you guys will be able to solve my problem very quickly (i hope). I need a script to take a line of input and change the 5-7th character of that input and replace it with 3 alternate characters. I thought tr may be the tool to do this however can't seem to determine the specific format.</description>
      <pubDate>Wed, 26 Mar 2003 10:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2935998#M928809</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2003-03-26T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2935999#M928810</link>
      <description>Hi Adam,&lt;BR /&gt;&lt;BR /&gt;Using sed:&lt;BR /&gt;&lt;BR /&gt;% echo abcdefghijkl | sed 's/\(^....\)...\(.*\)/\1zzz\2/'&lt;BR /&gt;abcdzzzhijkl&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Wed, 26 Mar 2003 11:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2935999#M928810</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-03-26T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936000#M928811</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;for i in `cat file`&lt;BR /&gt;do&lt;BR /&gt;    VAR=`echo $i | cut -c 5-7`&lt;BR /&gt;    echo $i | sed 's/'$VAR'/&lt;CHARACTERS&gt;/'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;&lt;/CHARACTERS&gt;</description>
      <pubDate>Wed, 26 Mar 2003 11:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936000#M928811</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-03-26T11:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936001#M928812</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;sed 's;^\(....\)...;\1ABC;' file&lt;BR /&gt;&lt;BR /&gt;should replace 5th, 6th and 7th chars to ABC.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 26 Mar 2003 11:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936001#M928812</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-03-26T11:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936002#M928813</link>
      <description>Thanks guys much appreciated, even tho the sed command looks a little complex, I think I see what going on.</description>
      <pubDate>Wed, 26 Mar 2003 11:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936002#M928813</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2003-03-26T11:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936003#M928814</link>
      <description>This is better than sed:&lt;BR /&gt;&lt;BR /&gt;nawk '{ print substr($0, 1, 4) "XXX" substr($0, 8)  }' filename&lt;BR /&gt;&lt;BR /&gt;Where XXX are your alternate characters.</description>
      <pubDate>Wed, 26 Mar 2003 11:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936003#M928814</guid>
      <dc:creator>Marcin Piwko</dc:creator>
      <dc:date>2003-03-26T11:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone for scripting?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936004#M928815</link>
      <description>Perhaps awk would be more 'readable':&lt;BR /&gt;&lt;BR /&gt;awk '{&lt;BR /&gt;  printf "%s%s%s\n",     substr($0,1,4),&lt;BR /&gt;    "ABC",&lt;BR /&gt;    substr($0, 8)}'&lt;BR /&gt;}' file&lt;BR /&gt;&lt;BR /&gt;will do the same ...&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 26 Mar 2003 11:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/anyone-for-scripting/m-p/2936004#M928815</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-03-26T11:30:01Z</dc:date>
    </item>
  </channel>
</rss>

