Make use of xargs instead of for loop