# Scripting problem

**URL:** <https://community.unix.com/t/scripting-problem/291286>\
**Category:** Shell Programming and Scripting\
**Created:** [July 11, 2011, 3:46am UTC](https://community.unix.com/t/scripting-problem/291286 "2011-07-11T03:46:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrbinoy](https://community.unix.com/letter_avatar/mrbinoy/32/5_5575768a8748004e209b776fc1b2916d.png) [@mrbinoy](https://community.unix.com/u/mrbinoy)\
**Post date:** [July 11, 2011, 3:46am UTC](https://community.unix.com/t/scripting-problem/291286/1 "2011-07-11T03:46:43Z")

</div>

I have one table contains the last field is gender and it is entered in small letter ,i would like to convert to caps after checking the field?  
eg:

```nohighlight
eno ename loc gender
1 a ch f
2 b hy M
3 c hy m
4 d ch f

```

---

<div class="post-metadata">

**Author:** ![bartus11](https://community.unix.com/user_avatar/community.unix.com/bartus11/32/1418_2.png) [@bartus11](https://community.unix.com/u/bartus11)\
**Post date:** [July 11, 2011, 3:51am UTC](https://community.unix.com/t/scripting-problem/291286/2 "2011-07-11T03:51:24Z")

</div>

```nohighlight
awk '{$4=toupper($4)}1' file

```
