Search Results

Search: Posts Made By: islegmar
2,018
Posted By islegmar
Original text AAAA [one|1] BBBB | CCCCC...
Original text

AAAA [one|1] BBBB | CCCCC [two|2] DDDDD

desired result

AAAA [one>1] BBBB | CCCCC [two>2] DDDDD

only the | between [] are changed. I know how to perform the chage (see my...
2,018
Posted By islegmar
Can sed perform editing operations ONLY in the matched region?
Hi:

Let's suppose I want to replace all the | by > ONLY when | is between []. Usually (and it works) I would do something like

sed -e 's/\(\[[^|]*\)|\([^[]*\]\)/\1>\2/g'

where I have to...
Showing results 1 to 2 of 2

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