Convert a file to all upper-case using tr command as shown below.
$ cat employee.txt 100 Jason Smith 200 John Doe 300 Sanjay Gupta 400 Ashok Sharma $ tr a-z A-Z < employee.txt 100 JASON SMITH 200 JOHN DOE 300 SANJAY GUPTA 400 ASHOK SHARMA
by Ramesh
Convert a file to all upper-case using tr command as shown below.
$ cat employee.txt 100 Jason Smith 200 John Doe 300 Sanjay Gupta 400 Ashok Sharma $ tr a-z A-Z < employee.txt 100 JASON SMITH 200 JOHN DOE 300 SANJAY GUPTA 400 ASHOK SHARMA
Previous post: Hack 20. Join Command Examples
Next post: Hack 22. Xargs Command Examples
|
|
|
|
Home | Linux 101 Hacks - Table of Contents | Contact | Email | RSS | Copyright © 2009–2013 Ramesh Natarajan. All rights reserved | Terms of Service