Purchase Solution

Perl script to list files (grouped by date) in a directory

Not what you're looking for?

Ask Custom Question

I work in Unix environment. I have some file in my home directory. Some of the files are old and some new.
I need Perl script using which I can get the following result. This is just an example:

19-Dec-2009 (Date) 20-DEC-2009 ( Date)
========= ===============
ABC123 (name of file) PQR148 (name of file)
DEF456 (name of file) STU364 (name of file)
GHI789 (name of file) VWX786 (name of file)
JKL014 (name of file) YZA999 (name of file)
MNO259 (name of file) QTW168 (name of file)
================= =================
Total size of files in Total size of files in
Mega bytes for Mega bytes for
19-Dec-2009 20-Dec-2009

I need all the files listed in my home directory according to the date. Also displaying the total size in mega bytes for each day.

Purchase this Solution

Solution Summary

Script in solution groups files according to last modification time of file, but it also provides instruction in case you want to group files according to last access time of file.

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C++ Operators

This quiz tests a student's knowledge about C++ operators.