Delete duplicate lines pairwise?
I encountered this use case today. It seems simple at first glance, but fiddling around with sort, uniq, sed and awk revealed that it’s nontrivial.
I encountered this use case today. It seems simple at first glance, but fiddling around with sort, uniq, sed and awk revealed that it’s nontrivial.
The Linux Programming Interface shows the layout of a virtual address space of a process:
I have two files in these formats:
Consider the following (with sh being /bin/dash):
Please note that I don’t ask how. I already know options like pv and rsync -P.
What is the -w (deadline) flag in ping for? I cannot find a description of it in the ping man page; only for -W, which takes seconds as a parameter. What is the difference between them, and how can I set a ping timeout (if host is not responding) to 200ms?
When I look at the properties of an image, I can see the date the photo was taken in “Date Taken”. When I edit the images (proprietary program) this data gets lost.
I am trying to configure xkb such that Caps Lock is mapped to the Compose key and Shift+Caps Lock functions as the traditional Caps Lock. I put the following in a new file called /usr/share/X11/xkb/symbols/gdwatson:
I’m writing a bash script to use inotifywait to monitor a directory and kick off actions when changes are detected. Something like:
From the question here, the OP wants to repeatedly poll the pid of a process using pidof in a shell script. Of course this is inefficient as a new process must be started for the pidof program multiple times per second (I don’t know that this is the cause of the CPU spikes in the question, but it seems likely).