BLOG

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.

Solution:

I opened that file in vi and done this

:%s/^M//g 
 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 https://github.com/user/git.git

// 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.
Do's:-
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.

Pages

Subscribe to RSS - blogs