Closed leggetter closed 8 years ago
It's specifically a problem if you do something like the following which purchases the first number returned from a search:
nexmo number:search GB | sed -n 1p | xargs -I{} nexmo number:buy {} --confirm
Because the output of the first command isn't show and is instead piped to sed and then accessed via xargs.
sed
xargs
Result:
› nexmo number:search GB | sed -n 1p | xargs -I{} nexmo number:buy {} --confirm Number purchased
What number did I purchase?
There may be a way to also output the number via the above command. But this request seems reasonable none the less.
It's specifically a problem if you do something like the following which purchases the first number returned from a search:
Because the output of the first command isn't show and is instead piped to
sed
and then accessed viaxargs
.Result:
What number did I purchase?
There may be a way to also output the number via the above command. But this request seems reasonable none the less.