Can I suggest either Ruby or Python? *this will be much easier.
Pseudo-code:
And since both Python and Ruby got functions to get a while dir into a list and to get a file's size and to remove a file, this could be like 15 lines of Python maximumCode:Get all the files of /home/blah in a list/array Remove '.' and '..' from that list Scan every file in that list (for i in list) *If file size is below 1024 kb then remove file


Reply With Quote

Bookmarks