datamash issue
Karl Auer
kauer at biplane.com.au
Sun Apr 26 22:34:56 UTC 2020
On Sun, 2020-04-26 at 13:31 -0700, Dave Stevens wrote:
> > > cat: /home/dave/node_modules/plantower/atbarrys/.csvdatamash:
> > > invalid option -- 'R'
>
> After looking this over I realize that I have unintentionally misled
> you. The lines I showed are part of a script (in the error case) and
> standalone in the second case. $target is defined when the script
> runs without the -R and works fine.
Looking at the first error message, there is nothing between the path
and ".csv". This suggests that $target was not defined. If you know it
was not defined and do not care, all is well. If you expected it to be
defined, then I suggest you put this line immediately before the cat
line to find out for sure:
echo "[$target]"
Also, piping cat really is the wrong way to do it...
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list