Linux (Display Lines without Given Pattern Using GREP)
echo " Enter The Name "
read name
echo " Enter Pattern To be Matched "
read pat
echo " File Content "
echo " ````` ````````` "
cat $name
echo " Lines without Given Pattern "
echo " ``````` ````````` ```````` ```````` "
grep -vi $pat $name
echo " Enter The Name "
read name
echo " Enter Pattern To be Matched "
read pat
echo " File Content "
echo " ````` ````````` "
cat $name
echo " Lines without Given Pattern "
echo " ``````` ````````` ```````` ```````` "
grep -vi $pat $name
No comments:
Post a Comment