slight problem with grep.
Tim Radzykewycz
radzy at calma.UUCP
Tue Feb 4 06:11:01 AEST 1986
In article <9299 at ritcv.UUCP> jxs7451 at ritcv.UUCP () writes:
>What happened is I used grep like this to find all of them.
>
> grep write * > zzzz
>
>having zzzz being a random file.
Note that this will only happen if 'zzzz' is an existing file. If
either of the following situations occur, there won't be a problem:
grep write * > AAAA <- AAAA doesn't contain 'write'
rm zzzz ; grep write * > zzzz
In the first situation, the file 'AAAA' is searched first.
In the second situation, the '*' doesn't match the file 'zzzz',
so grep never even opens it.
--
Tim (radzy) Radzykewycz, The Incredible Radical Cabbage.
calma!radzy at ucbvax.ARPA
{ucbvax,sun,csd-gould}!calma!radzy
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list