User Tools

Site Tools


ubuntu:xargs:using_xargs_with_the_find_command

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:xargs:using_xargs_with_the_find_command [2021/06/22 12:02] – created peterubuntu:xargs:using_xargs_with_the_find_command [2021/06/22 12:03] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - xargs - Using xargs with the find command ====== 
- 
-Used to search for specific files and perform further processing on those files using xargs. 
- 
-[[Ubuntu:xargs:Using xargs with the find command|Using xargs with the find command]] 
- 
----- 
- 
-===== Syntax ===== 
- 
-<code bash> 
-find /home/peter -name "*.txt" -type f -print0 | xargs rm -f 
-</code> 
- 
-<WRAP info> 
-**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. 
- 
-</WRAP> 
- 
  
ubuntu/xargs/using_xargs_with_the_find_command.1624363354.txt.gz · Last modified: 2021/06/22 12:02 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki