How to remove ^M at the end of every line

Hi, today i just gone through a serious problem between windows and unix.

Problem description:

Whenever i move file from windows to UNIX with winscp. Every line got ^M at the end in every file.


I opened that file in vi and done this

 Where ^ is (Control V) and M is (Control M).
It will remove all the trailing ^M at the end of every line.

Git in 2 days(Git Cheat Sheet)

First of all, i m very sorry for not updating my blog for a long time. I was very busy in office stuff, finally now am back with more concentration and Power.
Here I m sharing some commands for my new girlfriend GIT. i hope you like, if yes then don't forget to comment below.
If you know all this, may be its time to revise again.

git clone

// to clone a existing repository

How to Create Clickable(linked) index in openoffice

Do not:- 1. Make headings manually by bolding and increasing its size.
2. Don't use enter button again and again to go to next page.
1. For making headings write the text and then select that text, press f11 Select whatever heading you want to make heading1, heading2 etc.
2. For going to next page press ctl+Enter.
Making Documents in Openoffice:-
1. Enter Text whatever you want to write.
2. Make proper headings, title and subtitle etc.

Enable Clean Url in Drupal on Linux

1. Go to Terminal and type following commands

sudo a2enmod rewrite
sudo vi /etc/apache2/sites-enabled/default

If second command didn't work or it open a new file then try following command

sudo vi /etc/apache2/sites-enabled/000-default

2. Change (line 7 and line 11), "AllowOverride None" to "AllowOverride All".
Save and exit.
3. Restart Apache by following command.

sudo /etc/init.d/apache2 restart


Subscribe to Davinder Kumar RSS