<?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: String &amp;amp; shell in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767819#M22748</link>
    <description>When you say 'sh', which shell do you actually mean?&lt;BR /&gt;&lt;BR /&gt;On most Linux systems, 'sh' will be a symbolic link to 'bash'.&lt;BR /&gt;&lt;BR /&gt;If you're talking HP-UX's 'bourne' shell, then no, these won't work at all.&lt;BR /&gt;&lt;BR /&gt;As far as I'm aware, there isn't that level of string manipulation with the bourne shell.  You have to use either awk/sed/expr to get that sort of result.</description>
    <pubDate>Fri, 07 Apr 2006 04:57:37 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2006-04-07T04:57:37Z</dc:date>
    <item>
      <title>String &amp; shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767818#M22747</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I try to play whith string in shell.&lt;BR /&gt;Exemple : &lt;BR /&gt;I want to convert the string "toto" in "tot[o]".&lt;BR /&gt;I don't want to use awk, sed, expr.... and i want it works with sh, bash and ksh.&lt;BR /&gt;So I have echo "v=echo ${var%?}" and "echo ${var##$v}" to split it. Then i just concat it...&lt;BR /&gt;&lt;BR /&gt;But this works with bash and ksh but not with sh !&lt;BR /&gt;&lt;BR /&gt;Is there someone who have an idea to make it ?!?&lt;BR /&gt;&lt;BR /&gt;Thank's</description>
      <pubDate>Fri, 07 Apr 2006 04:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767818#M22747</guid>
      <dc:creator>cedber</dc:creator>
      <dc:date>2006-04-07T04:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: String &amp; shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767819#M22748</link>
      <description>When you say 'sh', which shell do you actually mean?&lt;BR /&gt;&lt;BR /&gt;On most Linux systems, 'sh' will be a symbolic link to 'bash'.&lt;BR /&gt;&lt;BR /&gt;If you're talking HP-UX's 'bourne' shell, then no, these won't work at all.&lt;BR /&gt;&lt;BR /&gt;As far as I'm aware, there isn't that level of string manipulation with the bourne shell.  You have to use either awk/sed/expr to get that sort of result.</description>
      <pubDate>Fri, 07 Apr 2006 04:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767819#M22748</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-04-07T04:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: String &amp; shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767820#M22749</link>
      <description>In fact, i want to test a file existence. But it could be a symbolic link, a directory or other ... and it could be automounted ! &lt;BR /&gt;with "echo /ect/passw[d]", for exemple, i can test it without be mounted. And "test -f" or other mount it...&lt;BR /&gt;&lt;BR /&gt;If you have any idea.&lt;BR /&gt;&lt;BR /&gt;Thank's</description>
      <pubDate>Fri, 07 Apr 2006 06:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767820#M22749</guid>
      <dc:creator>cedber</dc:creator>
      <dc:date>2006-04-07T06:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: String &amp; shell</title>
      <link>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767821#M22750</link>
      <description>I find a solution.&lt;BR /&gt;&lt;BR /&gt;tmp=`echo $toto*`&lt;BR /&gt;set $tmp&lt;BR /&gt;res=`echo $1`&lt;BR /&gt;&lt;BR /&gt;and i just compare $res and $toto to know if it's good... &lt;BR /&gt;&lt;BR /&gt;CedBer</description>
      <pubDate>Fri, 07 Apr 2006 09:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/string-amp-shell/m-p/3767821#M22750</guid>
      <dc:creator>cedber</dc:creator>
      <dc:date>2006-04-07T09:53:15Z</dc:date>
    </item>
  </channel>
</rss>

