English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using MKS toolkit to mimic grep commands on my windows terminal server. IN grep you canuse the -r to search all sub directories.

This isn't recognized in the MKS toolkit. and i was looking for a way to search all the sub-directories.

grep -r "redemption" *.[wip]

This is what im tring to do.

this is what i get
GREP: Unknown option -r.


Anyone know how can search all this including sub-directories?

2007-07-25 02:33:27 · 2 answers · asked by dayv2005 2 in Computers & Internet Programming & Design

i tried them both and it seems to not be working right.

this is what i typed in
"fn -name '*.wip' | grep redemption"

it is saying file not found am i doing something wrong

2007-07-25 03:02:22 · update #1

2 answers

Wow...haven't seen MKS in a while but what you might try is:

find . -name '*.wip' | grep redemption

If that doesn't work, use the MS DOS command to pipe the results into a file (dir /s /b *.wip > myfile.bat) and edit (I'd suggest Vim) to create greps for each entry.

2007-07-25 02:40:42 · answer #1 · answered by Jim Maryland 7 · 0 0

find . -name '*.[wip]' -exec grep redemption {} \;
or install Cygwin.

2007-07-25 02:42:08 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers