@derobert hey thanks for the reply! Yeah but there might be better approach, I am searching since 1 hr. Other devices also pass absolute coordinates how do drivers work in that case.
It needs two passes of grep (and also probably needs GNU grep)
Hey @steeldriver, nice sed solution. it really would benefit from an explanation though, sed labels and commands look like line noise to the uninitiated.
I've got a knotty problem that I can't figure out how to solve.
I have a text file containing a few million lines of text. Basically I want to run uniq, but with a twist: If two lines are identical but for a :FOO suffix, drop the line that lacks the suffix. But only if the lines are otherwise id...
@FaheemMitha Configuration is not free (time to learn the syntax, write the config, merge your changes on upgrade, etc.) Neither is running non-defaults (more likely to hit bugs).
@FaheemMitha Maybe there is an exception. But there isn't AFAIK any API to get that information out of the kernel, so even if there were a filesystem that did...
Many can track quotas. So you could get space per-user quickly.
I get du -hs -> 59G. But that's wrong, because /usr/local/src is separate but included. I need to exclude that. It is possible to tell du to not cross filesystems?
@derobert yeah, looks fine. If you like, you could also suggest a simpler solution: create a new partition and then move /usr and /var to it, replacing them with links in /. Those are usually the biggest dirs in / and that would allow the OP to sort out their space problems without too much pain.
You can wind up needing a lot of stuff for separate /usr. You can, for example, need a full network stack (including up to NetworkManager) and GSSAPI authentication stack to mount an NFS share. That's a lot to make sure it doesn't need to access anything in /usr/lib.
Oh well. He's very good, certainly worth a read. Especially his early, political SF. Anyway, he answered a question on ELU. I love it when that happens!
Is a POSIX context switch well-defined? Is it the same thing as switching threads in C? Can the C compiler generate everything for a context switch or is assembly programming still needed for a routine that switches the threads or switches the "context"? Is there even defined what is meant by "co...