SCO OpenServer 5.0.6
We have been running a script within a printer interface for faxing for since last May.
Here's the original line from the script:
grep -v ~ $FILES >> /tmp/$FILE.bat
This line strips out all the lines containing tilde, ~.
After deleting and adding another printer interface using the /usr/lib/hpnp/hpnpcfg utility, this script stopped working. Of course, running hpnpcfg is very common and may not have had anything to do with causing this problem.
The original script required modification to work. Here's two versions of the modified line that work:
grep -v "~" $FILES >> /tmp/$FILE.bat
or
grep -v \~ $FILES >> /tmp/$FILE.bat
Any ideas what could cause grep to stop recognizing tilde without the quotes?
We have been running a script within a printer interface for faxing for since last May.
Here's the original line from the script:
grep -v ~ $FILES >> /tmp/$FILE.bat
This line strips out all the lines containing tilde, ~.
After deleting and adding another printer interface using the /usr/lib/hpnp/hpnpcfg utility, this script stopped working. Of course, running hpnpcfg is very common and may not have had anything to do with causing this problem.
The original script required modification to work. Here's two versions of the modified line that work:
grep -v "~" $FILES >> /tmp/$FILE.bat
or
grep -v \~ $FILES >> /tmp/$FILE.bat
Any ideas what could cause grep to stop recognizing tilde without the quotes?