Quote:
Originally Posted by
Pinaki
Hi Ronald,
Thank you for your reply. I have the permission for those folders to access but the main point where I am stucked is I can check the current date file size from a single folder but I need to check the current date file size for multiple folders.
I don't know what you mean by
checking a size, but the usual way to retrieve the size for a single file, is to use the
stat command. The way to use this command differs between Unix platforms, and I don't know CentOS, so you will have to look at the respective man-page.
Of course to do this to several files, you have to loop over the files. This can be done using the
for loop of bash, or using the
find command. The latter is particularily convenient, if you need to descend into subdirectories.