[PLUG] requesting help with sed...
ALL, I need help with a particular sed pattern. I am maintaining a version file wherein I need to search for a line that starts with build_number_i. Following are the contents of the file: build_type_i=i build_number_i=1 branch_name_i=trunk build_id=1 Each line is of the form variable_name=value I want to increment value of variables build_number and build_id by 1. How can I achieve it with sed? Kindly help. Regards, - sameer oak. ___ Pune GNU/Linux Users Group Mailing List
[PLUG] BSD, FC-7 and Debian CDs...
All, I need following variants of UNIX and Linux: 1 FreeBSD 6.2 and OpenBSD 4.1 2 Fedora core 7 3 Debian Linux 4.0 How can I get them? Regards, - sameer oak. -- __ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.
Re: [PLUG] source code of echo command...
Bingo, Aditya, you've got that all right. I just refrained myself to counter query to the suggestions to search the kernel code. Friends, FYI, kernel really does not have to do anything with the shell built ins. I tried to get the shell built ins but could not really find or rather could not give enough time googling around for the same. Besides this, Vaibhav, the code snippet you gave had thousands of flaws. I don't really start enumerating them now. A hint for you, however, that code doesn't say anything about STDOUT_FILENO and STDERR_FILENO (stdout and stderr what commonly known as, one can find them in unistd.h). I particularly wanted to see the way these file descriptors were handled by echo.c Anyway... Aditya thank you so much for pointing my searches to BSDs. I had almost forgotten, the same could very well be found in the BSD locations. - sameer oak. On 7/28/07, Aditya Godbole [EMAIL PROTECTED] wrote: On 7/27/07, Dhiraj Khot [EMAIL PROTECTED] wrote: Here is some information which should be useful for you: There are two source codes for echo command (This can be verified using simple basic command type) - Echo is a shell built in. So each shell has its own source code. - If a shell does not have a echo command, then Kernel uses its own source code. And I believe this should be similar to locating source code of any other commands (like grep, etc). So should'nt be problem with that :) Am I missing something here? What does the kernel have to do with the echo command?? Or any command for that matter. You should be able to get the source of echo built into the code of the shell, since it is a builtin shell command. Here is echo from the freebsd 'sh' shell. http://www.freebsd.org/cgi/cvsweb.cgi/src/bin/sh/bltin/ Hope this helps. -aditya -- __ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions. -- __ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.
[PLUG] source code of echo command...
Where can I find source code of echo command? - sameer oak. -- __ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.
[PLUG] sample programs using libesmtp APIs
I'm looking for sample programs using libesmtp APIs. Thank you, Sameer Oak. -- __ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.
Re: [PLUG] API or system calls in .o or .a
Best way is to refer to header files. If you are including postgresql C API headers, the documentation for the same would tell you that you need to link against libpq.so. ... but what if i don't find such information in the headers? i've such headers that don't contain this piece of information. in fact, i started my search grepping through such headers. In shared libraries, you won't find any symbols to grep against either. They are all stripped.. ... aggreed. but still, there must be some command? k, can you please tell me how do we use nm command in usual practice? . -- __ Pune GNU/Linux Users Group Mailing List: ([EMAIL PROTECTED]) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.