[IPython-dev] linux command on ipython

Matthias Bussonnier bussonniermatthias at gmail.com
Fri Oct 16 20:09:11 EDT 2015

> On Oct 16, 2015, at 16:28, Rajesh Bondugula <bn121rajesh at gmail.com> wrote:
> some how it is unable to expand the $size and $days

yes, because it can’t expand $i it bails out and expand nothing. 
escape the $i with a second $. 

In [4]: !for i in $(find . -size +$size"M" -atime +$days); do echo "file: " $$i; done

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151016/573ec5fb/attachment.html>

More information about the IPython-dev mailing list