[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Daniel Skinner
Subject: grep
Date: Wed, 30 Jun 2004 12:48:14 -0500


grep (GNU grep) 2.5


Seems to have an odd issue with the number two


If I dump data to a file that I call "2" without quotes and then issue


grep phone 2


It returns the line in full


phone_num ...


But if I assign a variable as so


tmp1=`grep phone 2`


and echo $tmp1 it seems to REPLACE the "phone" and anything attached to
the word; such as "phone_num" with the number 2.


2 ...


It seems to have happened if the name of the file is 2 or 222 thus far.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]