User Tools

Site Tools


ubuntu:xargs:using_xargs_with_find

Ubuntu - xargs - Using xargs with find

Used to search for specific files and perform further processing on those files using xargs.


Syntax

find /home/peter -name "*.txt" -type f -print0 | xargs rm -f

NOTE: When using xargs with find, it does not include files that contain special characters in their names.

  • It is advisable to use the find -print0 option to include such files.
ubuntu/xargs/using_xargs_with_find.txt · Last modified: 2021/06/22 13:03 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki