We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,973 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to copy text from linux to Unix

Hey guys,

I'm new in Linux/Unix and just whant to figure out one simple thing:
So lets say I wrote my c program in vi in Linux, and whant it to be on the unix server.
When I'm trying to just copy and paste text from vi. It apperas in unix with tons of tabs spaces and stuff like that, so it is really hard to read.
So I would like to know how to copy text from my vi in linux and then paste it in exact the same format in Unix.

Sorry I accidentally create two posts and don't know how to delete one of them. does anyone also know this?

3
Contributors
2
Replies
1 Week
Discussion Span
1 Year Ago
Last Updated
3
Views
shean1488
Junior Poster in Training
68 posts since Feb 2012
Reputation Points: 18
Solved Threads: 0
Skill Endorsements: 0

Three!!! - 2 here, one in scripting.

I deleted them. Please dont cross post.

More details please. What is the file, what distros, how are you copy and pasting into where?

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

If you are pasting into vi, you might try running ":set paste" in vi before hitting insert and pasting.

Gromit
Posting Whiz in Training
214 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0645 seconds using 2.7MB