Hello experts,
I do -
$ ls -lhtr logs2007*
Is it possible that i can get the results of-
totals size in MB/KB for ALL "logs2007*"
note: in the same directory I have "logs2006*" & "logs2007*" files.
Hello experts,
I do -
$ ls -lhtr logs2007*
Is it possible that i can get the results of-
totals size in MB/KB for ALL "logs2007*"
note: in the same directory I have "logs2006*" & "logs2007*" files.
# du -sk 2007* | awk '{t+=$1} END{ print t}'
Use the search function next time.
could u clarify what do u mean by above??
there's a search function in this forum. Use that to search for what you want. counting file sizes has been posted and answered many times.
I will...Many thanks buddy. Just to know- can u tell me how the above code works?