<?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: converting uppercase to lowercase characters in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867582#M98052</link>
    <description>Line 1 gives no output and line 2 does not change the caps.&lt;BR /&gt;&lt;BR /&gt;am i doing something wrong ?&lt;BR /&gt;&lt;BR /&gt;klaas&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Oct 2004 04:37:04 GMT</pubDate>
    <dc:creator>Klaas D. Eenkhoorn</dc:creator>
    <dc:date>2004-10-27T04:37:04Z</dc:date>
    <item>
      <title>converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867580#M98050</link>
      <description>dear all&lt;BR /&gt;How do i convert a word written in all uppercase caracters to a word with only the first character uppercase and the rest lowercase ?&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;"WOORD IN EEN ZIN" -&amp;gt; "Woord In Een Zin"&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;kl@@s&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2004 04:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867580#M98050</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2004-10-27T04:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867581#M98051</link>
      <description>lt09:/home/merijn 107 &amp;gt; echo WOORD IN EEN ZIN | perl -lne'print join" ",map{ucfirst lc}split'&lt;BR /&gt;Woord In Een Zin&lt;BR /&gt;lt09:/home/merijn 108 &amp;gt; echo WOORD IN EEN ZIN | perl -pe's/(\w+)/\L\u$1/g'&lt;BR /&gt;Woord In Een Zin&lt;BR /&gt;lt09:/home/merijn 109 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 27 Oct 2004 04:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867581#M98051</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-10-27T04:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867582#M98052</link>
      <description>Line 1 gives no output and line 2 does not change the caps.&lt;BR /&gt;&lt;BR /&gt;am i doing something wrong ?&lt;BR /&gt;&lt;BR /&gt;klaas&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2004 04:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867582#M98052</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2004-10-27T04:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867583#M98053</link>
      <description>Do you have an `old' perl?&lt;BR /&gt;&lt;BR /&gt;if you get&lt;BR /&gt;&lt;BR /&gt;# perl -v&lt;BR /&gt;&lt;BR /&gt;This is perl, version 4.0&lt;BR /&gt;&lt;BR /&gt;$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $&lt;BR /&gt;Patch level: 36&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1989, 1990, 1991, Larry Wall&lt;BR /&gt;&lt;BR /&gt;Perl may be copied only under the terms of either the Artistic License or the&lt;BR /&gt;GNU General Public License, which may be found in the Perl 4.0 source kit.&lt;BR /&gt;&lt;BR /&gt;you have an ancient perl installed on /usr/contrib/bin, and that version does not support the fact that the script (the -e part) is tight to the -e option without space separation :(&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 101 &amp;gt; echo WOORD IN EEN ZIN | perl -pe's/(\w+)/\L\u$1/g'&lt;BR /&gt;Woord In Een Zin&lt;BR /&gt;a5:/u/usr/merijn 102 &amp;gt; echo WOORD IN EEN ZIN | perl4 -pe's/(\w+)/\L\u$1/g'&lt;BR /&gt;WOORD IN EEN ZIN&lt;BR /&gt;a5:/u/usr/merijn 103 &amp;gt; echo WOORD IN EEN ZIN | perl4 -pe 's/(\w+)/\L\u$1/g'&lt;BR /&gt;Woord In Een Zin&lt;BR /&gt;a5:/u/usr/merijn 104 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;If you only have that perl4, just add a space, as above example shows.&lt;BR /&gt;My advice would be to chack if you have other versions of perl installed, and move /usr/contrib/bin to the *end* of your $PATH.&lt;BR /&gt;Almost every perl script snippet posted on the forum expects at least perl-5.005_3, and I only use perl-5.8.5&lt;BR /&gt;&lt;BR /&gt;more modern perls are usually installed as either /usr/local/bin/perl or in /opt/perl/bin/perl&lt;BR /&gt;&lt;BR /&gt;[ Leuk om weer een nieuwe nederlandstalige te mogen verwelkomen :) ]&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 27 Oct 2004 04:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867583#M98053</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-10-27T04:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867584#M98054</link>
      <description>echo "WOORD IN EEN ZIN" | tr "[:upper:]" "[:lower:]"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 27 Oct 2004 05:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867584#M98054</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-10-27T05:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867585#M98055</link>
      <description>Pete, that would make the complete line lower&lt;BR /&gt;&lt;BR /&gt;Not what he wants.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 27 Oct 2004 05:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867585#M98055</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-10-27T05:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867586#M98056</link>
      <description>Right you are, Merijn.  I didn't read carefully enough.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 27 Oct 2004 05:46:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867586#M98056</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-10-27T05:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867587#M98057</link>
      <description>If you do run Pete's, this will capitalize the first letter of every word:&lt;BR /&gt;&lt;BR /&gt;#! /bin/sed -f&lt;BR /&gt;&lt;BR /&gt;# capit.sed -- capitalize words &lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;# split words into \n word&lt;BR /&gt;s/[a-zA-Z][a-zA-Z]\+/\&lt;BR /&gt;&amp;amp;/g&lt;BR /&gt;&lt;BR /&gt;# add conversion table: \n\n table&lt;BR /&gt;# table format: &lt;TO-CHAR&gt; &lt;FROM-CHAR&gt;&lt;BR /&gt;s/$/\&lt;BR /&gt;\&lt;BR /&gt;AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz/&lt;BR /&gt;&lt;BR /&gt;# subs every lower case first char&lt;BR /&gt;ta&lt;BR /&gt;:a&lt;BR /&gt;s/\n\(.\)\(.*\n\n.*\)\([A-Z]\)\1/\3\2\3\1/&lt;BR /&gt;ta&lt;BR /&gt;&lt;BR /&gt;# cleanup...&lt;BR /&gt;s/\n\n.*//&lt;BR /&gt;s/\n//g&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;/FROM-CHAR&gt;&lt;/TO-CHAR&gt;</description>
      <pubDate>Wed, 27 Oct 2004 07:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867587#M98057</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-27T07:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867588#M98058</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can (mis)use ksh special features, e.g.:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;LIST="WOORD IN EEN ZIN"&lt;BR /&gt;function convert&lt;BR /&gt;{&lt;BR /&gt; FUP="$1"&lt;BR /&gt; END_F=${FUP#?}&lt;BR /&gt; REST_LOW=$(echo "$END_F" | tr "[:upper:]" "[:lower:]")&lt;BR /&gt; typeset -u BEG_F=${FUP%$END_F}&lt;BR /&gt; echo "$BEG_F$REST_LOW"&lt;BR /&gt;}&lt;BR /&gt;for i in $LIST&lt;BR /&gt;do&lt;BR /&gt;        convert "$i"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 27 Oct 2004 08:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867588#M98058</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-10-27T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867589#M98059</link>
      <description>Beautifull all those scripts, but I still cannot imagine people actually write/use scripts that long if a simple&lt;BR /&gt;&lt;BR /&gt;perl -pe 's/(\w+)/\L\u$1/g'&lt;BR /&gt;&lt;BR /&gt;is all you need, and I even showed it works in perl4, which is available on every HP-UX box older than 11i (11.11 and up have perl5 installed by default)&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 27 Oct 2004 08:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867589#M98059</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-10-27T08:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: converting uppercase to lowercase characters</title>
      <link>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867590#M98060</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;I'm closing this thread, not knowing where it was for anymore so all of you are winners !! ;-)&lt;BR /&gt;Thanks for the responces.</description>
      <pubDate>Thu, 24 Aug 2006 02:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/converting-uppercase-to-lowercase-characters/m-p/4867590#M98060</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2006-08-24T02:10:18Z</dc:date>
    </item>
  </channel>
</rss>

