# 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
Write a bash script to print a particular line from a file:
awk = $ awk '{if(NR==LINE_NUMBER) print $0}' file.txt
sed = $ sed -n LINE_NUMBERp file.txt
$ cat sample_file.txt | awk 'NR==9' #[Prints 9th line]