[IPython-dev] linux command on ipython
Rajesh Bondugula
bn121rajesh at gmail.com
Fri Oct 16 19:28:34 EDT 2015
hi team,
in unix / mac
the following command will give me the files that are more than 100MB and
are not accessed in last 2 days.
size=100
days=2
for i in $(find . -size +$size"M" -atime +$days); do echo "file: " $i; done
But the same command in ipython gives me error.
!for i in $(find . -size +$size"M" -atime +$days); do echo "file: " $i; done
*find: -size: +M: illegal numeric value.*
some how it is unable to expand the $size and $days
I want to use for loop and want to do in pure unix command with out python.
Please let me know if there is an error in using it.
Thanks
Rajesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151016/92621864/attachment.html>
More information about the IPython-dev
mailing list