bashhelp
November 21st, 2005, 08:21 PM
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?