At 18:14 -0700 22/09/2010, Coffeeman wrote:
... What I need to do is move all the words with a 4 on their
line to a new document completely. There are 75,000 lines with 4 on it
in my document so manually moving is not an option.
Can you please suggest a method?
Write a UNIX filter such as :
#!/usr/bin/perl
use strict;
my $f = "/tmp/dump.txt";
open F, ">$f" or die $!;
while (<>) { print; print F if /4/ }
`open -a bbedit "$f"`;
This creates the file, writes all the matching lines and the opens
the file in BBEdit.
JD
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>