#!/bin/bashARRAY=185.18.207.66 31.18.212.113result=for i in $ARRAYdo      result=$(printf '%s %s' $result $i checked)donepaste <(printf %s\n $result)I am trying to print IP addresses but with appending checked phrase for each IP address.But I can not print a space between IP and checked phraseAbove code prints:185.18.207.66checked31.18.212.113checkedHow can I make it to print like below?185.18.207.66 checked31.18.212.113 checked 
Printing Space Between Strings
bash;shell;printf
There are many things to improve with your script before making it done right:Missing double quoteSpawning unnecessary external commands.Just using an array instead:#!/bin/bashARRAY=(185.18.207.66 31.18.212.113)printf '%s checked\n' ${ARRAY[@]}or using $@ to make it POSIXly:#!/bin/shset -- 185.18.207.66 31.18.212.113printf '%s checked\n' $@