Next: String substitution
Up: String Processing
Previous: Split a string into an array
Changing case
Some implementations of awk offer functions to change case.
set text = "Eta-Aquarid shower"
set utext = `echo $text | awk '{print toupper($0)}'` # = "ETA-AQUARID SHOWER"
set ltext = `echo $text | awk '{print tolower($0)}'` # = "eta-aquarid shower"
Next: String substitution
Up: String Processing
Previous: Split a string into an array
C-shell Cookbook
Starlink Cookbook 4
Malcolm J. Currie
2006 November 26
E-mail:ussc@star.rl.ac.uk
Copyright © 2009 Science and Technology Facilities Council