3 ms·
While you're there, it's worth spending a couple of minutes reading about the '-print0' option to find and the correspondingly useful '-0' option to xargs. This
by jwr 11y ago
While you're there, it's worth spending a couple of minutes reading about the '-print0' option to find and the correspondingly useful '-0' option to xargs. This might prevent another catastrophe due to spaces in filenames.
- cnvogel 11y agoAnd the "--" option to most utilties that make everything follow the "--" parse NOT as an option. e.g. "rm -- -r -f blubb" will delete the three files "-r", "-f" and "blubb".
- __david__ 11y agoI prefer using the `-d\\n` to `-print0`. It makes transitioning from `| less` to `| xargs` easier. It handles everything except embedded newlines in filenames, which is good enough for me.