[ale] searching for files....

Greg Freemyer greg.freemyer at gmail.com
Wed Jun 4 17:03:24 EDT 2008


Jim,

Good time to practice my awk skills.

Does this come close to working?  I did not test it.

####
#!/bin/sh

ls [\.a-z]* | fgrep -v .  > Universe_of_base_files

ls [\.a-z]*\.data > Universe_of_data_files

awk '
BEGIN {FS="." }
{print $1}
' Universe_of_data_files > BaseName_of_data_files

uniq Universe_of_base_files BaseName_of_data_files >
base_files_without_data_files

###

Greg

On Wed, Jun 4, 2008 at 3:52 PM, Jim Popovitch <yahoo at jimpop.com> wrote:
> I've a large directory of files which match the pattern [\.a-z]*, in
> the same directory is a related set of files matching [\.a-z]*\.data.
>  What I would like to do is locate all [\.a-z]* which don't have a
> corresponding .data file.    Ideas?
>
> Thx,
>
> -Jim P.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>



-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com


More information about the Ale mailing list