Task 5: xargs
Modify
xargsto run the command with a maximum of one argument at a time (likexargs -n 1).Change the input delimiter from a newline (
\n) to a semicolon (;) or a comma.Add a "verbose" mode that prints the full command string to be executed before the
fork().Modify
xargsto ignore and skip any lines in the input that are completely empty.Implement a version that prepends the input line to the command arguments instead of appending it.
Update
xargsto exit immediately if any child process returns a non-zero exit status.Modify the program to read input from a specific file path instead of the standard input.
Implement a "dry-run" mode that only prints what it would execute without actually calling
exec.Change
xargsto wait for all child processes to finish before the parent itself exits.Modify the logic to handle a maximum of 3 arguments per input line.
Last updated