Wednesday, 23 November 2016

Display Lines without Given Pattern

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

No comments:

Post a Comment