Hi,

I did not miss the point lol. Read my post again.

Quote:

Ah yes,

I assumed that "-s scans file beginning with string" meant the following:

Suppose you have a text file with:

mirc
mir
mi
m

I showed you first what I wrongfully assumed with an example.

I also said:

Quote:
In this case, if there is only 1 word on each line, then the $read and -s switch are the way to go.


Then I showed you in a second example where -s is useless.

So to summarize so everyone understands:

-s is useful if we are talking about lines starting with single words, not with multiple words. I'm very aware that nicknames do not consist of spaces, however there might be other occasions where there CAN be strings with multiple spaces, and in THOSE cases, -s is useless.




Gone.