Skip to content

2 program get same udp packets from a port

there is a server will send some UDP packets to my localhost, for example: if it send some UDP packets to my localhost and destination port is 5000. and there will have a client program to receive it on port 5000. but, what I want is to create another program, it will try to receive the same packets on port

CMake linking glfw3 lib error

i’m working with CLion, and I’m writing a program using the glfw3 lib.(http://www.glfw.org/docs/latest/) I installed and did everything correctly for the lib i have the .a and .h files in: I’m trying to use the library now, but i’m getting the linker error: undefined reference to &#821…

grep multipe wildcards in string

Say I have a file that contains: I want to grep and match lines that only contain ‘package’, ‘el6’, and ‘x86_64’ How would I go about doing that on a one liner using grep? The line must match all three and grep shouldn’t care about how many characters are in between. …

Make eclipse console buttons permanent?

I just migrated from a Windows machine to a Linux machine and I use Eclipse. In eclipse, on the windows machine, I used to have multiple buttons in the top right of the console view for starting, stopping, etc. In the Linux version of Eclipse I only have these buttons when I hover over maximize in the console…

awk combine sequence with substring key

I have two files for combining with tab delimited file. That two files key might be different only for “Reads” number. I want to compare that two files and combined based on substring key and match. Forexample, This case I want to combine that two column with File1 Key name. Please check below exa…

List all groups on machine via bash script

This code gives me an output of 1000 if I’m a regular user or 0 if I’m root, while executing the same command (cut -d: -f1 /etc/group) returns a list of all the available groups on the machine. I also tried with grep “” /etc/group but that produces the same results. What am I not getti…