Write a shell script which will move all files in the current directory containing the word hello
into a separate folder called hello-world
.
The current directory contains files a b c d e
and f
out of which files a
, c
and f
contain the word hello
.
How can I search for the word hello
in files of the current directory and move the files satisfying the condition into another directory hello-world
?