Tag Info

New answers tagged

6

While you ask for window management system you mention features like find/replace, file management etc. which is usually not part of Window Management, but a Desktop Environment, so you should be looking for separate tools for that. For general tools I would suggest having a look at http://suckless.org, they provide nice list of "do one thing and do it well" ...


2

It's not so much how as why... The point of port numbers is to restrict and delimit incoming data which is already available to the system, so it is not that a raw socket has special powers bestowed by the kernel in as much as it the reverse: a normal (i.e., not raw) IP socket has the special power of being specifically addressable. As an analogy, consider ...


2

You can give this command a try. It may need tweaking for the particular layout of the comments you want (vs the ones you dont). find . -type f -regex ".*\.[fF]\(90\)?" -exec awk '/^[Cc!]\ *program/{f=1} f{if(/^[^Cc!]/) exit; print}' {} \; This will find all commonly named Fortran files in your directory tree and print the first comment block that begins ...


1

I'm assuming that the reason you want to do this is so that you don't have to include "print scalar localtime" for each print statement. If so, I'd recommend doing this in a simpler fashion. Instead of using print on each print statement, make separate functions for logging error messages, informational messages and printing output. Like this: sub logmsg { ...


1

If the information you need is on self-contained lines, then recursive grep is the way to go. For instance, if you want to find all comment lines something like grep -r ^C might do the trick. (I'm guessing at the comment syntax here. I'm old-school, but not that old-school). If you need more complex logic, for instance "get all lines in the first block of ...



Top 50 recent answers are included