'Cygwin linux awk print error unable to initialize PRN device
I am executing bash shell script (I already have the shebang on the first line: #!/bin/sh) using Cygwin attempting to read line by line from a file to pick off variables using the AWK command:
compound='echo $line | awk -F"," '{ print $1 }' '
Here is the error that I cannot solve:
- compound='/usr/bin/echo $line | awk -F"," {'
- print '} ' Unable to initialize device PRN
Just an FYI- the awk command works like it is supposed from the Command line
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
