It breaks down like this:

awk = The command; it takes two parameters. Param 1: The script. Param 2: A 
Path to the source file.

‘{ print $1 >> “col-1.txt”
print $2 >> “col-2.txt” }’ = The Script, everything between the single quotes.

This script is printing or saving column 1 ($1) to a file called col-1.txt and 
column 2 ($2) to col-2.txt.

input.txt = Source file

Does that help?

> On Jun 29, 2022, at 8:22 PM, David Brostoff <[email protected]> wrote:
> 
> On Jun 29, 2022, at 7:43 PM, David Kelly <[email protected]> wrote:
>> 
>> In terminal.app it would be something like this:
>> 
>> awk ‘{ print $1 >> “col-1.txt”
>> print $2 >> “col-2.txt” }’ input.txt
> 
> As I mentioned, I am completely ignorant of awk, so sorry for the basic 
> question, but how do I get Terminal to point to the source document?
> 
> David
> 
> -- 
> 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/F3146D85-3A4B-4D8A-9F49-B12324BA3951%40earthlink.net.
> 
> -- 
> 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/A58A9E81-D6F0-4751-AC2D-03D95C4E15F6%40earthlink.net.

-- 
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/8079C83F-5BAC-4CDC-8E27-E06F0BE46F27%40rustydogink.com.

Reply via email to