bashhelp
November 22nd, 2005, 01:21 AM
for xrm in `ls`; do
if echo $xrm | grep -q *.html; then
rm $xrm
fi; done
The asterisk (*) are not functioning as variables. How do I make grep understand variables?
if echo $xrm | grep -q *.html; then
rm $xrm
fi; done
The asterisk (*) are not functioning as variables. How do I make grep understand variables?