Hack 21. Change the Case Using tr Command
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
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .