Yes - or I could write it in assembly! ;-)
Quoting David Nicol <[email protected]> on Thu, 2 Oct 2014 13:37:49 -0500:
On Thu, Oct 2, 2014 at 3:56 AM, Douglas Houston <[email protected]
wrote:
I have two lists of filenames, and I need to delete every entry from the
first list that appears in the second list. The way I'm doing it right now
seems awfully slow ... can anyone tell me if there is a way to do it in ksh
that runs faster than this does?:
untested:
perl -nle 'BEGIN{ @x{`cat secondlist.txt`} = () } exists $x{$_} or print' <
firstlist.txt >filteredlist.txt
mv filteredlist.txt firstlist.txt
--
Sometimes I imply things, or include important information in pictures.
Without a request for clarification, I will assume I was clear, which can
cause later problems when I wasn't. So please ask me to clarify anything
that seems ambiguous. Doing so is not rude. Thank you.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
uwin-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/uwin-users