0

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?

1 Answer 1

1

You're missing a - with -d:

targetTeamOffence=`sh ./score.sh A B | cut -d" " -f2`
Sign up to request clarification or add additional context in comments.

1 Comment

Oh my god, this is embarrassing. Thanks! [I'll accept this answer as soon as I can]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.