Monthly Archives: April 2014

Customize your Vim editor using .vimrc

Quick notes: – imap is for when you are in insert mode – map is when your are in command mode Thus when you are in the insert mode, sometime you need to exit to the command mode first using … Continue reading

Posted in Linux | Leave a comment

Search and replace withing a file

1234567sed -i -e"s/SEARCH_TEXT/REPPLACE_TEXT/g" FILENAME.txt # another example using bakup sed -i.bak -e"s/SEARCH_TEXT/REPPLACE_TEXT/g" FILENAME.txt # another example using variable sed -i -e"s/\/pathname/\/pathname-$date/g" "filename-"$date".xml"

Posted in Bash, Linux, Operating System | Leave a comment