Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Need help useing grep (http://www.topmudsites.com/forums/showthread.php?t=7149)

Gosu89 11-26-2013 08:08 AM

Need help useing grep
 
I was wondering how do I grep stuff in the putty?

Pymeus 11-26-2013 08:45 PM

Re: Need help useing grep
 
Grep is mainly a command-line regular expression matcher. If you don't know regular expressions, start out using -F (see below) for fixed string matches. If you're looking to learn, the -P PCRE (perl-like) regular expressions are IMO both the most useful and the easiest to get the hang of.

The basic usage is
Different regex types
There are many more options. Some of the most notable are -i (case insensitive), -v (match lines that DON'T match the pattern), -l (list only the names of files that contain a match), and -R (recursive).

Grep manual: .

Maybe you have some more specific questions?


All times are GMT -4. The time now is 02:56 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022