Search Results

Search: Posts Made By: Poki
3,002
Posted By Poki
find regex and remove #
hi ,

how do i remove # from a line where i found regex..

don't need to remove all the line.. only remove comment..
5,853
Posted By Poki
correct that variables contain line numbers.. so ...
correct that variables contain line numbers.. so

like delete
10 to 13 , and 45 to 47
5,853
Posted By Poki
sed remove multiple set of lines in one command
is there a way with sed to removed more than one set of lines in one line?

so i mean

sed ${firstElem},${lastIndex}d web.xml > web1.xml

this will delete lines between...
9,240
Posted By Poki
is there a way with sed to removed more than one...
is there a way with sed to removed more than one set of lines in one line?

so i mean

sed ${firstElem},${lastIndex}d web.xml > web1.xml

this will delete lines between ...
9,240
Posted By Poki
i ran it like you have specified the output...
i ran it like you have specified the output hasn't changed at all.. (substituted MsgBlk with my regex)
9,240
Posted By Poki
thanks .. but i have lots of sections that look...
thanks .. but i have lots of sections that look like this.. i only need to comment section that has MyRegEx

<filter>
<filter-name>something</filter-name>
...
9,240
Posted By Poki
what do you mean by ? "using N to get the...
what do you mean by ?

"using N to get the entire element in /<\([^ >]*\).*<\/\1>/, "
4,656
Posted By Poki
did you try putting space after [[ and before ]]...
did you try putting space after [[ and before ]] ?

so like this?

if [[ "${File_count}" -gt 0 && "${File_flag}" == "Y" ]]
9,240
Posted By Poki
Script to put block comment after finding regex in xml file
hi,
i need my bash script to find regex in xml file.. and comment 2 lines before and after the line that contains regex.. can't use # needs to be <!-- at the beginning and --> and the end of the...
Showing results 1 to 9 of 9

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