programming

Find out why a program can’t seem to access to a file

2010/05/05

$ strace php tias.php -e open,access 2>&1 | <a class="zem_slink freebase/en/grep" href="http://en.wikipedia.org/wiki/Grep" title="Grep" …

Delete all files in a folder that don’t match a certain file extension

2010/04/30

$ rm !(.foo|.bar|*.baz) Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like. […] <a …

String and Array Creation

2010/04/28

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the fourth part of a …

In (any) vi, add a keystroke to format the current paragraph.

2010/04/11

<a id="aptureLink_F2g9MXMw3t" href="http://en.wikipedia.org/wiki/Vi">vi editor is very powerful in the sense that you can use maps, abbreviations and recordings. One such …

Script to get the number of events from the logs.

2010/04/11

<a id="aptureLink_4P0PJ73NaG" style="margin: 0pt auto; padding: 0px 6px; text-align: center; display: block;" …

vim understanding the various modes and using the yanking more efficiently.

2010/04/06

We will look at the vim modes today. Sometime back , I was looking at copying a function body. So I was basically looking to copy the lines till matching &#8221;}&#8221;. I found a plugin …

monkeystudio IDE on Fedora 12.. IDE of choice

2010/03/30

<a href="http://www.monkeystudio.org/" target="_blank">Monkey IDE is a Free <a class="zem_slink freebase/en/cross-platform" title="Cross-platform" …

Search & replace with find & ed

2010/03/28

function sr() { declare pattern replacement name usage declare -i pvar=0 rvar=0 tvar=0 usage='usage: sr [-t ] [-n name] [-p pattern] [-r replacement] [– ] [dir1 dir2 …]' # cf. <a …

vim search multiple files

2010/03/25

Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like <a class="zem_slink freebase/en/grep" title="Grep" …

Recursive Regular Expressions

2010/03/24

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/yo-dawg-regex.jpg" alt="Yo dawg, I heard you liked regular expressions, so I put a regex in your regex so you can …

Linux find command – Find file and directories faster and easier

2010/03/16

 This command is very powerfull when used with combination of filters and pipes and RE. I will give some example: […] find . -type f –» List all files find . -type f -exec rm {} …

eclim for Fedora – Leonidas – installation.

2010/03/08

Here is the installation instruction for Eclim for vim. I have not tried it as I did not require it, but if you need it. …


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