Search Results

Search: Posts Made By: Sara183
6,791
Posted By in2nix4life
If this file is in this fixed format, this would...
If this file is in this fixed format, this would work:


cat file

15628 27243 LM INS CORP QQ1234567977011 SPIDLE CONTRACTING LLC 21MI 10 13 2006 03 04 2010 05 Premium Recovered - First Attorney...
5,394
Posted By rdrtx1
for only the lines that got updated: sed -n...
for only the lines that got updated:
sed -n 's/^\(.\{200\}.\{89\}\)-/\1O/p' filename
5,394
Posted By Yoda
Yes, you have to break the number 289=255+34:- ...
Yes, you have to break the number 289=255+34:-
sed 's/^\(.\{255\}.\{34\}\)-/\1O/' infile
EDIT: make sure you have a - sign at this position, otherwise the replace will not happen.
5,394
Posted By rdrtx1
try: sed 's/^\(.\{200\}.\{89\}\)-/\1O/' filename
try:
sed 's/^\(.\{200\}.\{89\}\)-/\1O/' filename
5,394
Posted By Yoda
I think sed has a limitation, you cannot specify...
I think sed has a limitation, you cannot specify more than 255 in curly braces "\{ \}", then you will get the following error:-
cannot be parsed.
Showing results 1 to 5 of 5

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