<?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: Character set in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578017#M229337</link>
    <description>use the tr command, for example:&lt;BR /&gt;tr "[:upper:]" "[:lower:]" &lt;FILE1&gt;file2&lt;BR /&gt;&lt;BR /&gt;see the man page for tr&lt;BR /&gt;&lt;/FILE1&gt;</description>
    <pubDate>Thu, 07 Jul 2005 11:06:04 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2005-07-07T11:06:04Z</dc:date>
    <item>
      <title>Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578015#M229335</link>
      <description>If there are 500 files in a path, all file name are 8 characters and with block letter and lowercase eg. T3aXvb6i , T3deK3s3 , how to change all characters to lowercase ? thx</description>
      <pubDate>Thu, 07 Jul 2005 10:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578015#M229335</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-07-07T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578016#M229336</link>
      <description>A script something like this (after cd'ing to desired directory):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ls | while read FNAME&lt;BR /&gt;  do&lt;BR /&gt;    NEW_FNAME=$(echo "${FNAME}" | tr "[A-Z]" "[a-z]")&lt;BR /&gt;    if [[ -e "${NEW_FNAME}" ]]&lt;BR /&gt;      then&lt;BR /&gt;        echo "File \"${NEW_FNAME}\" already exists. Cannot convert." &amp;gt;&amp;amp;2&lt;BR /&gt;      else&lt;BR /&gt;        mv "${FNAME}" "${NEW_NAME}"&lt;BR /&gt;      fi&lt;BR /&gt;  done&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2005 11:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578016#M229336</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-07T11:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578017#M229337</link>
      <description>use the tr command, for example:&lt;BR /&gt;tr "[:upper:]" "[:lower:]" &lt;FILE1&gt;file2&lt;BR /&gt;&lt;BR /&gt;see the man page for tr&lt;BR /&gt;&lt;/FILE1&gt;</description>
      <pubDate>Thu, 07 Jul 2005 11:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578017#M229337</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2005-07-07T11:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578018#M229338</link>
      <description>Ooops,&lt;BR /&gt;mv "${FNAME}" "${NEW_NAME}"&lt;BR /&gt;should be:&lt;BR /&gt;mv "${FNAME}" "${NEW_FNAME}"&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2005 11:06:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578018#M229338</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-07T11:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578019#M229339</link>
      <description>Here's the script&lt;BR /&gt;&lt;BR /&gt;#! /bin/ksh&lt;BR /&gt;ls * |while read FILE ;do&lt;BR /&gt;   LFILE=`echo $FILE |tr '[A-Z]' '[a-z]'`&lt;BR /&gt;   mv $FILE $LFILE&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2005 11:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578019#M229339</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-07-07T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578020#M229340</link>
      <description>Actually, it's rather important to quote both the old and new filenames because your existing filenames might contain whitespace (though discouraged, those pesky spaces are perfectly legal in UNIX pathnames) and without quoting your script just exploded. Also, it's rather important to check for the existence of the new filename before renaming the old one or you just lost data.</description>
      <pubDate>Thu, 07 Jul 2005 11:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578020#M229340</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-07T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Character set</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578021#M229341</link>
      <description>I must defer to Mr Stephenson on this issue as well as the check to see if the new filename exists statement.  Very good job.</description>
      <pubDate>Thu, 07 Jul 2005 11:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-set/m-p/3578021#M229341</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-07-07T11:19:12Z</dc:date>
    </item>
  </channel>
</rss>

