Reputation: 11
So I have to use SSH for my computational physics course, and with that we have to use VI editor. I'm coding in fortran 77 because that's the only language I have been taught through this course, but my professor has focused mainly on the physics portion and very little on the coding.
The code that I have written stores 400,001 lines of data into a data.dat file. I need to copy those 400,001 lines of data into an excel file so that I can make a graph.
The problem I am having is when highlighting the text manually, selecting the select all option, or the select screen option, I am only able to select about 200 lines of code and they usually repeat themselves.
I've seen several shortcuts but I can't get them to work. I used :%y* and :%y+ and all it says is E488 trailing character.
I have also tried gg"*yG and gg"+yG and all it says is 400,001 lines yanked but then I cannot paste them into my excel file.
I have run myself ragged working on this code for over a month and I am now so close to turning it in but i really need that data and I really need that graph.
Please help me figure this out, I am literally driving myself insane trying to do this.
Upvotes: 1
Views: 654
Reputation: 535
You ask the wrong question. Ask instead - transfer file through ssh - and You will get many possibillities Here is just one
https://help.ubuntu.com/community/SSH/TransferFiles
If you are on a windows machine - just install winscp: https://winscp.net/eng/download.php
Upvotes: 2