bash - Unwanted space in brace expansion

bash – Unwanted house in yoke enlargement Answer

Hello expensive customer to our community We will proffer you an answer to this query bash – Unwanted house in yoke enlargement ,and the respond will breathe typical by way of documented data sources, We welcome you and proffer you fresh questions and solutions, Many customer are questioning in regards to the respond to this query.

bash – Unwanted house in yoke enlargement

The intuition you are getting an area that the birth of every line sophisticated. The reecho command spits out its arguments separated by house. Each dispute consists of an enlargement from {0..4..2} and {0..2..2} adopted by a newline. When you set these two collectively you behold that the house on the birth of every line is definitely the house that reecho emits between objects.

There are a pair of options that spring to intellect. The first is that when you do not intellect having a void line on the birth of the output you would put the newline on the initiate of every enlargement,

reecho -e "n"{0..4..2}" "{0..2..2}

Another is to loop throughout the arguments and print them individually

for seq in {0..4..2}" "{0..2..2}; do reecho "$seq"; carried out

or

reecho -e {0..4..2}"n"{0..2..2} | xargs printf "%d %dn"

we are going to proffer you the answer to bash – Unwanted house in yoke enlargement query by way of our community which brings all of the solutions from a number of dependable sources.

Add comment