Finding all numbers that are bigger than 1 in vim

2009/12/24

/^([2-9]d*|1d+) If we have a csv like structure The trick here is simple, lets look at the regex from the begining: ^ – start from the begining () – start and end of block [] – digits within this. So …

Initialization or clearing of log files

2009/12/22

Like all Unix file systems, open log files can cause a real problem when they get too large and need to be deleted. The problem is, if you delete an open file, the link is removed, but all of the …

7 Examples for Sed Hold and Pattern Buffer Operations

2009/12/22

<a href="http://www.flickr.com/photos/35237104750@N01/259102613"><img id="kwiclick-temp-0" title="txt e-book" …

Know when you will type :q in your term instead of vi(m), the alias will chewed you out.

2009/12/20

most simple solution is to alias :q like so: alias :q=`echo &#8221;This is not vim&#8221;` but as someone suggested in commandlinefu, you can use tput to put some color and fun into this. …

Change information for the user on Linux machine.

2009/12/19

Today I have couple of hours to spare and thus thought might as well spend it on my blog. The finger command in *nix systems is used to display the information on the users. This information is taken …

Chrome – Chromium on Linux (repo)

2009/12/19

Fedora people put up a repo for the chrome web browser and it is quite frequently updated. All you need to do to install the browser is following: […] sudo vi /etc/yum.repos.d/chrome.repo …

Opens Four Google Frames At Once

2009/12/19

Googlegooglegooglegoogle: Opens Four <a class="zem_slink" title="Google" rel="homepage" href="http://google.com">Google Frames At Once …

Yahoo adds Glue to make search more useful

2009/12/19

The article is so good in itself that I need not say anything more than giving the <a href="http://www.guardian.co.uk/technology/blog/2008/nov/20/yahoo-glue" …

check out http://browsershots.org/

2009/12/19

If you are a web developer and are worried about how your <a class="zem_slink" href="http://en.wikipedia.org/wiki/Website" title="Website" …

Display a block of text with delineated by a start pattern and an end pattern

2009/12/18

Taken idea from commandlinefu.com The command will display a segment from the file from the start pattern to the end pattern. function viewsegment() { tail -n +`fgrep -n -m 1 “$1” $3 | …

Compiz/Beryl issue on Fedora.

2009/12/15

Since quite some time I was getting the below error when I am trying to run compiz. I was busy and also was not working in Gnome so did not look at this until today. […] compiz (core) – Fatal: …

Tip: Using find Command in Linux

2009/12/10

Ok this I was planning for quite sometime.. but found this <a href="http://www.pinoytux.com/linux/tip-using-find-command-in-linux" target="_blank">here. Worth reading for …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it