Is there a limit in number of lines to be Copy pasted in VI editor ?
In my old shop, we only had AIX machines there (all of version 6.1 ). FTP ports were not open for these AIX machines because of some security thing. So, we can't ftp scripts in ASCII mode.
When we wanted to copy huge scripts (shell scripts, sql scripts , ..etc) from our Windows based laptop (scripts in notepad or textpad ) to those AIX machines, we had to manually copy and paste to the vi editor in the AIX machine because SCPing the scripts can introduce unwanted characters ( SCP can be done only in bin mode. )
So, when I tried copying big scripts , VI editor in AIX didn't allow more than 100 lines to be copied at a time. So, for a 1000 line script , we had to copy paste 10 times part by part!
In my new shop , we have both AIX (5.3) and RHEL 5.4 . But i did manage to copy and paste a 2000 line script from Windows XP notepad to VI editors in both AIX and RHEL in one go. VI editor doesn't seem to have a limit of 100 lines here. Only difference from my Old shop and here is that i am using putty in the current shop. In my earlier shop where I encountered the 100 line limit , I was using tectia as the ssh client . Could this be the reason ? Have you guys faced a similair situation ?
Most all Linux distributions use vim (Vi IMproved). This is why you can do more there. Yes, the original "vi" that comes with archaic Unix based systems is pretty limited. Don't expect miracles there. However, many of those legacy OS's, including AIX, do support the installation of programs like vim, so maybe that is a solution (??).
Radoulov said: Convert the files using dos2unix after the secure copy (scp).
dos2unix is meant for removing only Control^M characters. Right ? I think SCPing an ASCII file (in bin mode) can introduce other unwanted characters as well.
[...]
dos2unix is meant for removing only Control^M characters. Right ? I think SCPing an ASCII file (in bin mode) can introduce other unwanted characters as well.
Well,
I really don't know, could you provide a reproducible test case?
[...]
When we wanted to copy huge scripts (shell scripts, sql scripts , ..etc) from our Windows based laptop (scripts in notepad or textpad ) to those AIX machines, we had to manually copy and paste to the vi editor in the AIX machine because SCPing the scripts can introduce unwanted characters ( SCP can be done only in bin mode. )[...]
Just noticed this ...
Note that WinSCP (a free product) supports ASCII mode for scp.
Hello guys,
I am trying to copy a line in vi editor and paste it with below commands but paste command is not working and instead of paste action prints the p character!!
I should also mention that the server is Solaris...
1) crontab -e
2) j to move down
3) yy to copy the line
4) o to... (4 Replies)
Heyas
I'm currently attempting to apply the code of tui-select to tui-list.
That is because tui-list simply made a 1 string list, while tui-select uses dynamicly up to 3 strings per line.
Anyway, so i copy pasted the code, and just made the changes marked with red....
Know that both scripts... (2 Replies)
Hi,
I am trying to pull data from a txt file which has 51 lines
Example
AK
AR
AL
AZ
CA
CO
CT
Now i want to send above data as input to script but i want to run them twice at a time in a nohup
like
nohup Script_name AK & (3 Replies)
hi guys
how can i limit number of files in a disk or partition ?
or how can i make a limit to inode number for a disk or partition ?
ext3 or ext4 file system (1 Reply)
In the vi editor, there seems to be some limit on the number of characters could be allowed in single line. I tried a line with characters up to 1880. It worked. But when i tried with something of 5000 characters, it doesnt work. Any suggestions.
Thanks in advance! (2 Replies)
Dear All,
I have a file containing 12 lines.
First 3 lines have 9 values and the remaining 9 lines with no values. I was trying to copy and paste these 9 values of the first 3 lines into last 9 lines simultaneously as A=1.491331, B=1.539000 ..... but I don't know how to cope with this... (9 Replies)
This is an vi editor question. I do not know is this a right place to ask this question or not?
I have a file with the following contents,
10 11
20 21
30 31
I want to copy first column that is 10,20,30 after second column, so that output will look like the following,
10 11 10
20 21 20... (3 Replies)
Is there a way that I can limit number of commands that one user can run during period of time. For example Max 10 commands per senconds.:) (3 Replies)
Hi
Hi! I'm currently using AIX 5.2 and would like to know where can i find to see that there's a restriction on the number of login times a user can have. Example, I want give a 2 login per user but some one to give 3 login and some one have to give unlit login time (without logging off the... (2 Replies)
Hi,
I'm using awk and sed to extract some data out from a text file. The text file consists of data over a million (prolly millions) of lines.
Question: Is there a limit of number of lines for awk and sed?
Thanks in advance. (2 Replies)