Extracting lines that don’t contain tabs

28 views
Skip to first unread message

Francisco Hirsch

unread,
Jun 3, 2023, 7:41:57 AM6/3/23
to bbe...@googlegroups.com
I have files where nearly all the lines have 2 tabs.
A few lines don’t have tabs. Those are the ones I want to extract.
Help will be appreciated

Francisco
--
Lic. Francisco Hirsch

Kaveh Bazargan

unread,
Jun 3, 2023, 8:06:22 AM6/3/23
to bbe...@googlegroups.com
Make a copy of the file and replace

^.*\t.*\r

with nothihng. That should get rid of any lines with tabs in them.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/7CF51CE5-0442-435A-9C8A-11722DB8B0E1%40gmail.com.


--
Kaveh Bazargan PhD
Director
Accelerating the Communication of Research
  https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/

Neil Faiman

unread,
Jun 3, 2023, 8:15:16 AM6/3/23
to BBEdit Talk Mailing List
Text > Process Lines Containing ...

Brian Forte

unread,
Jun 3, 2023, 9:14:13 AM6/3/23
to bbe...@googlegroups.com
On Sat, 3 Jun 2023 08:41:41 -0300, Francisco Hirsch wrote:
> I have files where nearly all the lines have 2 tabs.
> A few lines don’t have tabs. Those are the ones I want to extract.

1. Choose *Text -> Process lines containing…* from the BBEdit menu bar.

2. Change the default radio button so it reads

Find lines that [ ] contain [‧] do not contain:

3. Enter ‘\t\t’ (without the quote marks) in the text-entry field.

4. Check the [√] Grep checkbox.

5. uncheck [ ] Copy to clipboard.

6. check [√] Copy to new document.

7. click *Process* (or press *Return*).

The ‘few lines [that] don’t have tabs’ should appear in a new,
untitled, window.

Hope this helps,

Regards,

Brian Forte.
--
Brian Forte
<bfo...@adelaide.on.net>

Francisco A. Hirsch

unread,
Jun 3, 2023, 5:54:30 PM6/3/23
to BBEdit Talk
Kaveh Bazargan, Neil Faiman, Brian Forte: Thanks!

Francisco A. Hirsch

unread,
Jun 4, 2023, 8:54:46 AM6/4/23
to BBEdit Talk
I tried to make a Text Factory. It does extract the lines I want but the options Copy to Clipboard and, more importantly, Copy to new document, are greyed-out.
Is there a way to automatically save the result?

On Saturday, June 3, 2023 at 8:41:57 AM UTC-3 Francisco Hirsch wrote:

Johnny Ragadoo

unread,
Jun 5, 2023, 8:30:04 AM6/5/23
to BBEdit Talk
Edit->Select all should light up the Copy function.
Reply all
Reply to author
Forward
0 new messages