Write a script to translate the string from capital letters to small and small letters to capital using awk command.

 



Write a script to translate the string from

 capital letters to small and small letters 

to capital using  awk command.



 

Program =



#!/bin/bash

echo "Utsav Gohel 91900104011"

echo "Enter The Word in Lower Case = "

read lw

echo "Enter The Word in Upper Case = "

read uw

 

echo "$lw" | awk '{print toupper($0)}'

echo "$uw" | awk '{print tolower($0)}'




Output =