-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xargs: Allow running interactive commands with -o
-o opens /dev/tty and connects it to the stdin of the commands that get executed. Example: say we want to delete some files interactively. We cannot do that with xargs without the -o option because the `rm -i` command does not receive an interactive stdin. But if we add `-o`, then xargs will ensure that /dev/tty is connected as stdin and `rm -i` will show us a prompt and wait: ``` % touch a b c % echo a b c | xargs -o rm -i ```
- Loading branch information
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters