Domanda

I want to run script score with "A" and "B" parameters and apply cut on the result. In the following way:

targetTeamOffence=`sh ./score.sh A B | cut d" " -f2`

However I'm getting wrong usage of cut error.

What I doing wrong?

È stato utile?

Soluzione

You're missing a - with -d:

targetTeamOffence=`sh ./score.sh A B | cut -d" " -f2`
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top