Posted on September 7, 2008 by nicolasmoving file from/to on the filesystem based on value for i in `grep -irl “value” *`; do mv $i ./tmp/;done;