Search Results

Search: Posts Made By: gilmord
23,200
Posted By gilmord
Close, but no cigar:) That worked for...
Close, but no cigar:)
That worked for everything except where the AVG_**** was repeated in the third column. Eg:
RSUSG_DY;AVG_AVGDHT;AVG_AVGDHT;#;A
became:
RSUSG_DY;AVG_AVGDHT;AVG_AVGDHT;Average...
23,200
Posted By gilmord
Done it! The part after AVG_ is always *...
Done it! The part after AVG_ is always * characters or less, so this works:

:%s/AVG_\([A-Z0-9]\{1,8\};\)/AVG_\1Average /
23,200
Posted By gilmord
Sorry, I didn't make myself clear in my original...
Sorry, I didn't make myself clear in my original posting. The snippet of the file was tiny and the first letter isn't always 'u'. Also, I only want to add in the word average when the previous word...
8,484
Posted By gilmord
I would personally never tar anything up with an...
I would personally never tar anything up with an 'absolute' file name as you'll never know whether you'll have permission to untar it/whether you'll overwrite someone's much needed directory.

I...
23,200
Posted By gilmord
Search and replace to first occurrence of string
Hi all,

I have a very large; delimited file. In vi I would like to replace:
CSACT_DY;AVG_UEACT1;uesPerActiveLinkSetSize_1;#;A
CSACT_DY;AVG_UEACT2;uesPerActiveLinkSetSize_2;#;A...
Showing results 1 to 5 of 5

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