User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2023/01/11 13:31] rogerlinux [2024/11/17 12:59] (current) – external edit 127.0.0.1
Line 163: Line 163:
 </code> </code>
  
 +==== Print a full string in lowercase or uppercase ====
 +
 +<code bash>
 +echo "This Is A CaPiTaLiZeD String" | awk '{print tolower($0)}'
 +# Output: "this is a capitalized string"
 +
 +echo "This Is A CaPiTaLiZeD String" | awk '{print toupper($0)}'
 +# Output: "THIS IS A CAPITALIZED STRING"
 +</code>
linux.1673443868.txt.gz · Last modified: 2024/11/17 12:59 (external edit)