Quantcast
Channel: Write a shell script which will move all files in the current directory containing the word "hello" into a separate folder called "hello-world" - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4

Write a shell script which will move all files in the current directory containing the word "hello" into a separate folder called "hello-world"

$
0
0

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?


Viewing all articles
Browse latest Browse all 4

Latest Images



Latest Images