Limit results with grep
Create a file named servers with the following
server_apache1=1.1.1.1
server_apache2=1.1.1.2
server_apache3=1.1.1.3
grep apache servers
will return output
server_apache1=1.1.1.1
server_apache2=1.1.1.2
server_apache2=1.1.1.3
To limit the grep results, try
grep apache servers-m 1
Output: server_apache1=1.1.1.1
grep apache servers-m 2
Output:
server_apache1=1.1.1.1
server_apache2=1.1.1.2
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home