Search Results

Search: Posts Made By: OLweiser
27,507
Posted By OLweiser
thanks for this. Problem is, I need a global...
thanks for this.
Problem is, I need a global substitution /g but ONLY for the first 2 columns. So I need to identify these in the pattern

Any ideas?
27,507
Posted By OLweiser
Hi No, I'm not rewriting anything. Its simply...
Hi
No, I'm not rewriting anything. Its simply a large text file where the first 2 columns are separated by a TAB and I want to substitute that for a single space.
27,507
Posted By OLweiser
Following on from this and still using...
Following on from this and still using substitution, is it possible to search and replace a field (column) rather than just a character/s?

I need a way of replacing a TAB between 2 fields with a...
27,507
Posted By OLweiser
thanks, unfortunatley that doesnt work. Although...
thanks, unfortunatley that doesnt work. Although it sends a carriage return, it doesnt translate when opened in a text file and still shows each line continuously.
I know if I can get a true ^M at...
27,507
Posted By OLweiser
Where,^M - Ctrl-v+Ctrl-M I dont fully...
Where,^M - Ctrl-v+Ctrl-M

I dont fully understand what your suggesting here, can you expand on what key strokes need to be input?

thanks, Ollie
27,507
Posted By OLweiser
global substitution in VI
Hi All,
I'm trying to add a carriage return to the end of my lines in a text file using substitution, but I havent found a way as yet.

Can anyone help?

something along the lines of:...
Showing results 1 to 6 of 6

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