How to convert string to lower case

Posted In Shell - By Tum. On Wednesday, December 17th, 2014 With 0 Comments

วิธีการ convert string จาก Upper case (ตัวใหญ่) ไปเป็น Lower case (ตัวเล็ก) บน bash shell สามารถทำได้หลายวิธีดังนี้

  1. ใช้คำสั่ง tr
  2. ใช้คำสั่ง awk
  3. ถ้าหากเป็น bash 4.0 ขึ้นไปสามารถใช้คำสั่งตามด้านล่างได้
  4. ใช้ perl

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*