![]() |
|
|
#1 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
9,787 Posts |
At work, my machine runs windows (can't change that). I could really benefit from the functionality of grep on a certain project (repetative find and replaces over a group of files) . I don't have admin rights on the PC. I would like to find a free grep for windows that can live outside of ProgramFiles (so that I can try it out.) If it works out ok, I can petition to have it properly installed.
Does anyone have any recommendations? I have looked at a few of the top hits on our fav search engine. |
|
|
|
|
|
#2 |
|
Mar 2006
Germany
55308 Posts |
The GNU utilities for Win32 cotain command line versions of egrep.exe, fgrep.exe and grep.exe. Try "grep --help" for more info.
|
|
|
|
|
|
#3 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
9,787 Posts |
Thanks for that pointer. I think that will now be on my home machine....
I found Notepad++ I have tried it and it seems to work well for one thing that I really wanted, multiline find and replace. I can highlight the text and replace all occurances in whateever file type in a directory. I parked it in a temp folder (it can live on a USB drive). Free √ Does not have to be in Program Files √ Does not nee to write to registry √ Multiline find and replace √√ Multifile actions √ Commandline driven Χ Overall a big win. |
|
|
|
|
|
#4 |
|
"(^r'°:.:)^n;e'e"
Nov 2008
;t:.:;^
17478 Posts |
Will, you kindly help us with "regular expressions"
(search and replace) ? search . Replace &\t start 01f result 0\t1\tf ( \t = tab ) ( & | $ ) not working properly (Thanks) Last fiddled with by cmd on 2010-09-21 at 23:26 Reason: help |
|
|
|
|
|
#5 |
|
Tribal Bullet
Oct 2004
67258 Posts |
You an also install MinGW and Msys, which will give you a complete unix environment without touching the registry. If you put the path to the MinGW and Msys binaries in your environment then you can also use a large number of common text utilities from the windows command prompt.
By the way, to do an automated search and replace over multiple files I find 'sed' is more useful. |
|
|
|
|
|
#6 |
|
Aug 2004
2·5·13 Posts |
I take it people have a downer on Cygwin for some reason? (perhaps because it writes to the registry?).
Chris |
|
|
|
|
|
#7 | |
|
Bamboozled!
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across
10,753 Posts |
Quote:
Paul |
|
|
|
|
|
|
#8 | |
|
Aug 2004
100000102 Posts |
Quote:
Chris |
|
|
|
|
|
|
#9 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Cygwin reproduces a posix environment much more faithfully than MinGW does, which means its various pieces are integrated together much more tightly than I'd like. At least twice now, I've had to install new versions of packages I've needed, but if the cygwin install is more than a year old then nothing will work unless I throw it all away and get the latest version of everything. Not that something basic like grep would have that problem, but it's a pain to need version of X+1 of something and then put everything on hold while cygwin reinstalls.
Another problem I've noticed is that installing packages in cygwin requires the ability to run cygwin install scripts, which means you have to use their setup utility to run everything and track down dependencies. With MinGW you just unzip the new package into your current install. Using the setup utility means needing network access for it to get all the packages it needs; that sounds like a no-brainer, until you have to install cygwin on a machine with no or restricted network access. What can you do then, put a whole cygwin mirror on a DVD? Last fiddled with by jasonp on 2010-09-22 at 13:37 |
|
|
|
|
|
#10 | |
|
Aug 2004
100000102 Posts |
Quote:
Chris |
|
|
|
|
|
|
#11 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
9,787 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GTX 1080 ... which is recommended... | petrw1 | GPU Computing | 27 | 2017-12-14 14:54 |
| Recommended GTX 760 clockspeed? | UBR47K | GPU Computing | 6 | 2015-12-20 17:22 |
| Current recommended TF bit depth? | endless mike | GPU Computing | 3 | 2015-08-07 23:00 |
| Some recommended sequences | schickel | Aliquot Sequences | 7 | 2009-07-25 10:00 |
| Recommended TF bit levels for M(>10^8) | NBtarheel_33 | Math | 19 | 2008-11-03 17:19 |