Search Results

Search: Posts Made By: Sara183
6,572
Posted By Sara183
This will also do the magic, cat $FILE | sed...
This will also do the magic,
cat $FILE | sed -e "s/B.[0-9]*[\-][0-9]*$/O00000000000000/g" > Temp_File
6,572
Posted By Sara183
This one worked fine for my problem. cat...
This one worked fine for my problem.
cat tempFile | sed -e "s/\-..............$/O00000000000000/g" > filea
cat filea | sed -e "s/.\-.............$/O00000000000000/g" > fileb
cat fileb | sed -e...
6,572
Posted By Sara183
Hi , To RudiC- My apologize, sample file i...
Hi ,

To RudiC- My apologize, sample file i provided have spaces between them, that was eliminated by browser. I cannot able to understand your solution c'oz am new to SED.

To bipinajith - i...
6,572
Posted By Sara183
Hi, I want to replace the whole position...
Hi,

I want to replace the whole position 284-298 to character 'O' if this '-' character occurs in that position. Above mentioned thread will replace only 289 position.

This is how my file...
6,572
Posted By Sara183
Find character and Replace character for given position
Hi,
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
...
5,342
Posted By Sara183
I got it Thanks!.:D
I got it Thanks!.:D
5,342
Posted By Sara183
It worked fine . Great! Thanks alot.:D ...
It worked fine .
Great! Thanks alot.:D

---------- Post updated at 04:34 PM ---------- Previous update was at 04:30 PM ----------

Is there way to write that into new file?

I tried with ...
5,342
Posted By Sara183
Is there any alternative for this issue?
Is there any alternative for this issue?
5,342
Posted By Sara183
sed find and replace command not working
Hi,
Am trying to replace a character '-' with 'O' in position 289 in my file but am not success with below command.
sed 's/^\(.\{289\}\)-/\1O/' filename

sed: 0602-404 Function...
Showing results 1 to 9 of 9

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