grep + add time out after some time if not find the relevant match
- by yael
Dear friends
I use the following command syntax to search params in my script
grep -qsRw -m1 "any_param" /dir/..../
Some times the search take avery long time
The question is how to add time out to grep command
For example after 20 seconds grep will break out
If it not illegal to add time out to grep , how it will possible on other way?
THX
Yael