troubleshooting Question

command to cat all *.dat files except ones modified today.

Avatar of donnatronious
donnatroniousFlag for United States of America asked on
Shell Scripting
7 Comments2 Solutions275 ViewsLast Modified:
Title kind of says it all.  I need to execute the concatenate command against all .dat files in the directory except those that have been modified today.  So today is 12/09/11, this means the command should concatenate all except the last one in the list below.

$ ls -ltr *.dat
-rw-r--r-- 1 initiate initgrp  136 Nov 18 15:07 input-20111118-1507.dat
-rw-r--r-- 1 initiate initgrp  180 Nov 18 16:17 input-20111118-1617.dat
-rw-r--r-- 1 initiate initgrp   80 Nov 18 16:26 input-20111118-1626.dat
-rw-r--r-- 1 initiate initgrp  121 Nov 18 16:43 input-20111118-1643.dat
-rw-r--r-- 1 initiate initgrp 1079 Nov 18 17:50 input-20111118-1734.dat
-rw-r--r-- 1 initiate initgrp  602 Dec  7 12:02 input-20111207-1202.dat
-rw-r--r-- 1 initiate initgrp  173 Dec  7 12:21 input-20111207-1221.dat
-rw-r--r-- 1 initiate initgrp  348 Dec  9 14:53 input-20111209-1256.dat
ASKER CERTIFIED SOLUTION
xterm

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros