Not really a BBEdit solution, but "return all lines which contain
such-and-such a string" is the most trivial application of the `grep`
command:
$ cat > logfile
user1 did something
user2 did something else
yet another thing was done by user1
something else was done by user3
^D
$ grep user1 logfile > newlogfile
$ mv newlogfile logfile
$ cat logfile
user1 did something
yet another thing was done by user1
Sometimes the command line is actually much simpler than using BBEdit
(which would presumably need really complex line-oriented search-and-
replace pattern to accomplish the same task)...
(type "man grep" to learn about more advanced usage of grep)
-rob
On 30 Nov 2006, at 22:01, W. Thomas Leroux wrote:
Hey all
I have a rather large (~20MB) log file, and I want to delete all the
lines that *don't* contain a string (in this case, a username).
I'm sure there is some kind of greppy goodness that can be applied to
accomplish this, but I don't know the first thing about grep. :-/
Any suggestions? Thank you!
Thomas.
--
All about me!
http://www.leroux.ca
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>