Search Results

Search: Posts Made By: wingsy1212
3,916
Posted By wingsy1212
Thanks for the explanation!
Thanks for the explanation!
3,916
Posted By wingsy1212
if i understand you right, :%s/......./& /g...
if i understand you right, :%s/......./& /g suppose to only find first match for each line, it will not find everything that matches it?
3,916
Posted By wingsy1212
so after i used the command, the 0.4385...
so after i used the command, the 0.4385 became 0. 4385, one more space between them. i guess if i do this, it might work.
:%s/^......./& /

---------- Post updated at 11:49 AM...
3,916
Posted By wingsy1212
0.981101.517 0.4385 0.1625 0.5312 ...
0.981101.517 0.4385 0.1625 0.5312 0.1108 0.1038 0.0142
2.944101.517 0.4815 0.1263 0.4148 0.1724 0.0928 0.0321
4.907101.517 0.4736 0.0343 ...
3,916
Posted By wingsy1212
This will do it. But it will also change other...
This will do it. But it will also change other columns and put extra two lines of 0.0000 after each line.

One more question, what is & do in the command, does that mean after the pattern I...
3,916
Posted By wingsy1212
Find certain number of character in vi
Hello, Experts,

I have a file with the first and second column connected together, and i want to use vi to seperate them (put a space in between).

Is there any command in vi would put a space...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy