On Jun 29, 2022, at 8:59 PM, David Brostoff <[email protected]> wrote:

> I have a list of numbers in this format:
> 
> 123 56
> 789 01
> 
> How can I create two separate documents with 123 and 789 in one and 56 and 01 
> in the other?

I don’t think that is a good grep task. It cries for awk.

In terminal.app it would be something like this:

awk ‘{ print $1 >> “col-1.txt”
   print $2 >> “col-2.txt” }’ input.txt

Anyway, that is the idea. My awk is rusty.

--
David Kelly N4HHE, [email protected]
============================================================
Whom computers would destroy, they must first drive mad.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/7450BB2E-FBB8-4A30-B60B-6CCC6508CD68%40hiwaay.net.

Reply via email to