i want to cut some value from the result of egrep. can i pass the result of egrep to cut without passing it to a file like -
chkname=`cut -f1 egrep -i "Y" company.txt`
echo chkname
i want to cut some value from the result of egrep. can i pass the result of egrep to cut without passing it to a file like -
chkname=`cut -f1 egrep -i "Y" company.txt`
echo chkname
chkname=`egrep -i "Y" company.txt | cut -c2-10`
hope that helps