Silencing the line "echo test > test/test.txt" in a shell script
I tried surrounding it with set +v and set -v but that did not do what I want. It always echo's test to stdout along with the file. It's line 15 below:
Code:
#!/bin/bash |
It's grep which needs to be silenced. Try
Code:
if ! cat test/test.txt | grep -q -e test |
Thanks, and that's why I always post full source, never know if I actually know what a problem is.
|
All times are GMT -5. The time now is 05:08 PM. |