grep + mv files

Submitted by Gast (nicht überprüft) on Mo, 11/16/2020 - 17:16
  1. Search / Grep  content of files in all-documents/
  2. Move files containing africa to documents-africa/

 

grep -siRlI 'africa' all-documents/ | xargs mv -t documents-africa/

 

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.