Just use {} in xargs command as many times as required as following: echo test | xargs -I {} echo {} {}