<div dir="ltr"><div>hi team,</div><div><br></div>in unix / mac<div><br></div><div>the following command will give me the files that are more than 100MB and are not accessed in last 2 days.</div><div><br></div><div>size=100</div><div>days=2</div><div><p style="margin:0px;font-size:11px;font-family:Menlo">for i in $(find . -size +$size"M" -atime +$days); do echo "file: " $i; done</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">But the same command in ipython gives me error.<br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">!for i in $(find . -size +$size"M" -atime +$days); do echo "file: " $i; done</p><p style="margin:0px;font-size:11px;font-family:Menlo"><b>find: -size: +M: illegal numeric value.</b><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><b><br></b></p><p style="margin:0px;font-size:11px;font-family:Menlo">some how it is unable to expand the $size and $days</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">I want to use for loop and want to do in pure unix command with out python.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Please let me know if there is an error in using it.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">Thanks</p><p style="margin:0px;font-size:11px;font-family:Menlo">Rajesh</p></div></div>