Skip to content

Tag: command-line

Quick remote logging system?

I want to be about to quickly insert some logging into some testing using either (Linux) command line or Python. I don’t want to do anything system wide (e.g. re-configuring syslogd). I’ve done something like this before by doing: wget URL/logme?im=module_name&msg=hello_world And then just par…

Replace line with double quotes

I want to replace a line with double quotes on OpenBox startup, like: with I use this command, but it does not work: It gives me this error: Answer The ampersand in the replacement string recalls the pattern in the search string. So you can just do this: Also, you can use single quotes on the outside, and dou…

Comm command – unnecessary restriction?

This is a question about the comm command on linux command line. Why does it work on only sorted files? Why can’t it sort the files for us, then do its thing? To illustrate: If we have file1 and file2, and we wish to compare them using comm, we find that we obtain an unexpected result if either of the