How to grep and copy files in Linux?

Open terminal and type:

find * -cmin -1440 | xargs grep -i "mystring" | cut -d : -f1 | xargs cp -t ../my_copy_location/

Leave a Reply

Your email address will not be published. Required fields are marked *