datamash issue
Dave Stevens
geek at uniserve.com
Sun Apr 26 23:57:46 UTC 2020
On Mon, 27 Apr 2020 08:34:56 +1000
Karl Auer <kauer at biplane.com.au> wrote:
> 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]"
the value "$target" is for sure defined (and non-null) at the time of
use because it is used as a filename for a file that persists and holds
appropriate data; the context of using the line outside the script is
what has made the $ value null.
OK, I'll drop cat and redirect.
d
>
> Also, piping cat really is the wrong way to do it...
>
> Regards, K.
>
--
Affectionate tactile stimulation is a primary need, a need which must
be satisfied if the infant is to develop as a healthy human being.
And what is a healthy human being? One who is able to love, to work, to
play, and to think critically and unprejudicially.
-- Ashley Montagu – Touching, The human significance of the skin. 2e
1978
More information about the ubuntu-users
mailing list