I have some problem with the Linux grep command, it don’t work !!!
I am trying the following test on my Ubuntu system:
-
I have create the following folder:
/home/andrea/Scrivania/prova -
Inside this folder I have created a txt file named prova.txt and inside this file I have write the string
testand I have save it -
In the shell I have first access the folder
/home/andrea/Scrivania/provaand so I have launched the grep command in the following way:~/Scrivania/prova$ grep test
The problem is that the cursor continues to blink endlessly and cannot find NOTHING! Why? What is the problem?
You’ve not provided files for the grep command to scan
grep "test" *or for recursive
grep -r "test" *