Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more versus view

Status
Not open for further replies.

confuseddddd

Programmer
May 22, 2003
53
US
Could someone explain to me the difference between more versus view??? I have a file that when viewed using more, no carriage control characters (^M) appear but when using view the carriage control characters appear.

I have been asked to clean the data up and was just going to remove the ^M but now not even sure that exists in the file.
Can anyone help me???
 
'more' for viewing the file content but it cannot view the control key(^M). 'view' can view any control key in the file and you can use all vi command.
In Sun Platform, you can use dos2unix to remove the control key from the file.
 
view is really the same as calling: vi -R. In other words it opens the file in vi in read only mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top