# Basic syntax:
xargs -a file_to_read -I {} command {}
# Where:
# - -a tells xargs to reads items from file_to_read instead of stdin.
# - -I specifies a string that will be replaced by the stdin when found.
# This is useful for controlling where the read content appears in the
# xargs command
# Note, it's often useful to use this in conjunction with -n 1 and -P # which
# causes xargs to run the commands in parallel using # processes
#!/bin/bash
while read line
do
echo $line
done < /path/to/file
sed 'NUMq;d' file
xargs -I{} curl "xyz.com/v1/"{} <file