Search Results

Search: Posts Made By: Jedimark
1,519
Posted By Jedimark
Thanks, usually the simplest solutions are the...
Thanks, usually the simplest solutions are the best! I was over complicating things by hoping to do everything in one single s/xxx/xxx/g!
1,519
Posted By Jedimark
jaysunn - do you know if that performs one single...
jaysunn - do you know if that performs one single scan of the file or two?
1,519
Posted By Jedimark
[sed] Is this possible?
I'm substituting certain words using sed like this:

WEND becomes W_END
CLOSE become C_LOSE

etc...

At the moment this is done using separate sed substitutions. But is this possible in one by...
2,039
Posted By Jedimark
Thanks, and I got your alternative on my own too...
Thanks, and I got your alternative on my own too - so I'll go to bed happy tonight.

I'm guessing the ( stuff ) puts the expression into a group called \1 - does that mean I could define other...
2,039
Posted By Jedimark
Haha, not quite - work! We have a content...
Haha, not quite - work!
We have a content checker to detect uuencoded strings before it enters a very strict environment and I need to detect that rule above to prevent what could be a uuencoded...
2,039
Posted By Jedimark
Help with sed substitution / regex
Hi all, please can anyone show me how to use sed and regular expressions to achieve the following.

If a line contains a capital A followed by exactly 5 or 6 characters followed by an angled...
1,862
Posted By Jedimark
Thanks to everyone for their responses. sed...
Thanks to everyone for their responses.

sed '/<mytagone>/s/-/ /g' file
... is sufficient for my requirement.

But I wonder is there a sed solution to:

From:
<mytag_one>hello 1_2_3...
1,862
Posted By Jedimark
sed substition within XML tag
Hi all,

I basically want to remove certain characters from within a certain XML tag:

From:
<mytagone>hello 1-2-3 world</mytagone>
<mytagtwo>hello 1-2-3 world</mytagtwo>

To:...
Showing results 1 to 8 of 8

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