On Jul 2, 2022, at 9:29 PM, David Kelly <[email protected]> wrote:
>
> Type the command line and rather than type the input file name just drag the
> file to the command line. Finder/Terminal will write the file's full path on
> the command line.
Thanks for the tip, but I must be doing something wrong.
First I copy and paste this command:
awk ‘{ print $1 >> “col-1.txt”
print $2 >> “col-2.txt” }’ input.txt
Then I drag the source file to the command line and press Enter, which produces
this error message:
awk: syntax error at source line 1
context is
>>> ? <<<
missing }
awk: bailing out at source line 1
Two text files are produced, but the one named "col-1.txt" is blank and the
"col-2.txt" has this line, repeated three times:
}’ input.txt/Users/davidbrostoff/Desktop/Sample2010-2011.txt
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/B7BB1454-4A0D-451D-AADB-B95104629ECB%40earthlink.net.