I have been using the cut command a lot recently to shed extra data from large text files. I typically use cut with a specific delimiter by activating the -d switch and I thought that the -d switch was required. It turns out that -d is not required and by default -d actually defaults to the delimiter being a tab. When you need to have a tab as the delimiter for cut you simply don’t specify the -d switch. Below I show a couple examples of a file trimmed down using cut with and without the -d switch as well as another way to convert tabs in a file to spaces which then will allow you to use the Linux cut command with the -d” ” switch.
While doing some testing this evening I ran into all sorts of errors when attempting to compile a new version of btscanner on Backtrack Linux 5 R3. Luckily it is super easy to resolve the error complaining about an unrecognized command named -Wimplicit-function-dec. This error will display when attempting to run “make” against an already configured (./configure) btscanner source. Below we output the error in more detail, explain how to resolve the error by editing the make file, and then display the compilation process moving past the error.
It can be useful to set temporary environment variables from the command line in Linux. Even more useful is the output of a long command being set to a single environment variable. Below I show an example of setting an environment variable followed by setting an environment variable to the output of a command or string of commands.
Tonight I was working on creating some some listeners that run automatically on boot in Ubuntu. Not only should they run automatically but there should be scripts to start, stop, and watch the status of the listeners for incoming traffic. I also decided to add the items to the Ubuntu Applications menu and thought it would be neat if when the menu item was selected that it automatically launched a terminal window and ran the command automatically. Turns out that doing exactly that is really easy as explained below.
I love notes. I am the kinda guy that puts notes every where including all over my computer desktop. Mac has a really cool application which is called sticky notes. I have been using it for a few weeks now and I really like it. It has multi colored notes so I can keep my tasks color coded. Today I discovered a really neat feature when using sticky notes.