Friday, 12 December 2014

Shell Script for replacing a particular character of a file

Write a Shell Script for replacing a particular character of a file

Solution:
echo " Enter the name of the file to be edited"
read f
echo " Enter the character to be searched"
read s
echo " Enter the character to be substituted"
read w
echo " File after Modification"
cat $f | tr $s $w   

Execution:


No comments:

Post a Comment