May 2017
Beginner
552 pages
28h 47m
English
Here is a small echo script to make it obvious as to how xargs provides command arguments:
#!/bin/bash #Filename: cecho.sh echo $*'#'
When arguments are passed to the cecho.sh shell, it will print the arguments terminated by the # character. Consider this example:
$ ./cecho.sh arg1 arg2
arg1 arg2 #
Here's a common problem:
./cecho.sh arg1
./cecho.sh arg2
./cecho.sh arg3