Usar xargs para comandos que requieren más de 1 argumento


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. En Linux:
  2. find . -type f -name "*.h" -print0 | xargs -0 --replace=% cp % result/include/
  3.  
  4.  
  5.  
  6. En otros Unix:
  7.  
  8. $ pwd
  9. /Users/taylor/Desktop/foo
  10. $ find . -type f -name "*mp3" -print0 | \
  11. xargs -0 -J% mv % /Users/taylor/Desktop/foo
  12. $

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.