I have some set of files for a particular date. What is the command that I need to put in for finding the total size of all the files for that particular date. The following command is fetching me the size of all individual files seperately
Please state what Operating System and version you have. I guess it's not unix, but some Linux variant?
There is much variation in the "du" command and I personally haven't seen one behave like your Post #1 and which won't take "-hc" as a parameter.
Oracle have really messed up the Solaris manuals site.
There are two versions of "du":
/usr/bin/du
/usr/xpg4/bin/du
According to the "man" pages for Solaris 10 they both accept "-hs" . If one doesn't work, worth trying the other one.
Possible way round this it to pipe the list (not expand the list on the command line):
ls *20101010* | du -hs
Do check that you don't have "du" aliased with parameters.