<div dir="ltr">thanks a lot!<div><br></div><div>Now I can find and study the code :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 24, 2014 at 4:23 AM, IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/23/2014 08:12 PM, Jonghyun Kim wrote:<br>
> thanks for the answer!<br>
><br>
> I tried to find with grep, but it doesn't work...<br>
><br>
</span>> *akntk@umi:~/Downloads/pd-0.46-4$ grep '"metro"' *.c*<br>
> *grep: *.c: No such file or directory*<br>
<br>
all C-source files (that's all of Pd without the GUI), lives in the<br>
"src" folder.<br>
<br>
zmoelnig@XXX:~$ cd ~/src/pd/src/<br>
zmoelnig@XXX:~/src/pd/src$ grep '"metro"' *.c<br>
<span class="">x_time.c:    metro_class = class_new(gensym("metro"),<br>
(t_newmethod)metro_new,<br>
</span>zmoelnig@XXX:~/src/pd/src$<br>
<br>
you could also use grep's "-r" flag to recursively search files in<br>
subdirectories, and the "-l" flag to only show the filename (and not the<br>
line containing the keyword).<br>
<br>
<br>
<br>
zmoelnig@XXX:~$ cd ~/src/pd/<br>
zmoelnig@XXX:~/src/pd$  $ grep -r -l '"metro"' .<br>
./doc/5.reference/timer-help.pd<br>
./doc/1.manual/x5.htm<br>
./src/x_time.c<br>
zmoelnig@XXX:~/src/pd$<br>
<br>
obviously there are more files containing "metro" in quotes.<br>
note that i now use '.' as the "file" to search (which means the current<br>
directory; as i do a recursive search, this will search all files in all<br>
subdirectories of the current dir).<br>
<br>
<br>
you might also want to have a look at the manpage of "grep" to learn<br>
more about it.<br>
<br>
$ man grep<br>
<br>
<br>
gfdsmr<br>
<span class="HOEnZb"><font color="#888888">IOhannes<br>
<br>
</font></span><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>