0

I have a bash variable that has an extra space before the text and I can get rid of it by doing

echo "$myvar" | xargs

However, I want to store the variable that has the '| xargs' applied to it as another variable as opposed to echo so I can use it for something else.

0 Answers0