Grep command to find files containing text string and move them

view full story

http://unix.stackexchange.com – I am able to locate files in a folder containing a specific text string using this command: grep -lir 'string' ~/directory/* How do I move the files that appear in the above result to another location? (HowTos)