Top "Gnu" questions

This tag is for programming questions related to software and tools provided by the GNU ("GNU's Not Unix") project.

tr command - how to replace the string "\n" with an actual newline (\n)

I would like to use the tr command to replace all occurrences of the string "\n" with a new line (\…

linux gnu tr
Best way to get machine id on Linux?

What is the best-practiced way to get an unique machine ID in GNU/Linux for i386 architecture? Are there any …

linux unique gnu uniqueidentifier
Why use asprintf() instead of sprintf()?

I'm having a hard time understanding why you would need asprintf. Here in the manual it says The functions asprintf() …

c printf gnu asprintf
Testing if a file exists in makefile target, and quitting if not present

Is there a way to exit with an error condition if a file does not exist? I am currently doing …

makefile gnu
SED: copy lines from a file to specific line in another file

I can do this using the following example. The 1st command will output the lines 16...80 from file1 to patch, while …

bash sed gnu gnome-terminal
gdb: How do I pause during loop execution?

I'm writing a software renderer in g++ under mingw32 in Windows 7, using NetBeans 7 as my IDE. I've been needing to …

c++ debugging netbeans gdb gnu
How to use/install GNU binutils (objdump)

I need to use the objdump and readelf commands in my application that runs on windows. I know I can …

windows cygwin gnu binutils objdump
What is GLIBC? What is it used for?

I was searching for the source code of the C standard libraries. What I mean with it is, for example, …

c gnu glibc standard-library
Makefile ifeq logical AND

I would like to check multiple conditions in an if loop of GNU make file. Here's an example: ifeq ($(TEST_…

unix makefile gnu-make gnu boolean-logic
Displaying struct values in GDB

In GDB, given a variable that points to a struct, print will display the raw pointer value and x will …

c debugging gdb gnu