Helping Geeks Win the War on Technology Since 2010

'Linux' Category

  • How to Create a Link Shortcut with .htaccess

    April 13, 2012

    Following this method allows you to create a “shortcut” link on your website which takes your visitor to the real link. This can be done a number of ways, but nothing beats the simplicity of using the .htaccess file. Now this is only for Apache-hosted websites (if you use cPanel you’re in the clear) and [...]

  • Remove DOS ^M Line Endings in Vim

    March 2, 2011

    I do most of my work in Vim since it’s the easiest to use without a mouse. Moving between keyboard and mouse can be tiring, especially when coding, so Vim is particularly good at keeping your hands in a stationary position. Granted, the learning curve can be quite high, but there isn’t anything Vim can’t [...]

  • Recursively Search and Replace Strings in Linux with Perl

    February 8, 2011

    Previously, I covered a dead simple one-line Perl command to perform a string search and replace over multiple files on the Linux command prompt. While it did its job for me that day, today I had to do the same thing but this time recursively over all subdirectories. For review, the Perl command to do [...]

  • Easy Linux Command for Text Replace over Multiple Files

    January 25, 2011

    On Windows, there are a host of nice free editors like Notepad++ to do a search and replace over multiple files quite easily, and that’s exactly how I do it. However, with a powerful command line console at your disposal in Linux, doing the same is as easy as executing a single statement. Now I [...]

 
Powered by Wordpress and MySQL on MDDHosting. Theme by Shlomi Noach, openark.org