[IPython-dev] linux command on ipython
bn121rajesh at gmail.com
Fri Oct 16 19:28:34 EDT 2015
in unix / mac
the following command will give me the files that are more than 100MB and
are not accessed in last 2 days.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev