Search Results

Search: Posts Made By: preethy
Forum: Programming 02-18-2015
4,843
Posted By preethy
Replace comma which is not inside brackets,quotes or paranthesis
Hi All,

I want to replace the commas which are not inside parenthesis,quotes

if input is
abc,[def,ghi,ijk],lm,(no,pq,rs),{tu,vw,xy},zs,"as,as,fr",'ab,cd,ef'

output should be
abc...
1,000
Posted By preethy
Convert tag based lines to xml format
Hi All,

Can some one help me to convert this line of code to xml format.

Thanks in advance,
preethy.

input:
...
4,525
Posted By preethy
Hi Lucas_0418, !/Total/ this is skipping...
Hi Lucas_0418,
!/Total/ this is skipping even the line containing string "total-abcd-01" and "acc-Total-09".But i want to skip only the lines containing the string "Total".
Thanks & Regards,...
4,525
Posted By preethy
Hi lucas_0418, Thanks a lot for...
Hi lucas_0418,
Thanks a lot for letting me understand this even though your on work.
Regards,
preethy
4,525
Posted By preethy
Hi lucas_0418, for(k in S) ...
Hi lucas_0418,
for(k in S)
{
if(k == found[q])
{
}
}
k is "" here found[] consists all the values of z,how can if...
4,525
Posted By preethy
Hi Lucas_0418, can u just say...
Hi Lucas_0418,
can u just say a word what the if else block is doing and what for the end block is used.while analyzing this code I got to know if else is used for summing the...
4,525
Posted By preethy
Hi Lucas_0418, I think u can't get...
Hi Lucas_0418,
I think u can't get me.if s[5] is an array we can say that z takes values 0-4 but here how the array s is formed without any declaration and initializationand what are the...
4,525
Posted By preethy
Hi Lucas_0418, Thank you so...
Hi Lucas_0418,
Thank you so much for your quick reply.If z is always a string what's the use of if block and can u explain what this line mean p=p?RD A[i] : A[i] and what's the...
4,525
Posted By preethy
Hi Akshay Hegde, I...
Hi Akshay Hegde,

I have gone through man awk.But i really cant understand gsub(/-[0-9]+$/,x,z) what this is returning and what is S in if(!(z in S)).
Thanks ,
Preethy
4,525
Posted By preethy
Hi Akshay Hegde, I...
Hi Akshay Hegde,

I really appreciate what you've done. Thanks a bunch.
Thanks & Regards,
Preethy

---------- Post updated at 06:01 AM ---------- Previous update was at...
4,525
Posted By preethy
Hi Akshay Hegde, Why the scope name in...
Hi Akshay Hegde,
Why the scope name in second line is SKW-ActiveSubCPE instead of SKW-09-ActiveSubCPE
4,525
Posted By preethy
Hi Akshay Hegde, This is the output i got by...
Hi Akshay Hegde,
This is the output i got by executing your code....
4,525
Posted By preethy
Hi Akshay Hegde, ...
Hi Akshay Hegde,
...
4,525
Posted By preethy
HI Akshay Hegde , my...
HI Akshay Hegde ,

my requirement is i want to get the scope name in output file without succeeded by digit.i.e if scope name is bla-bla-bla-[digit] i should get in output file as...
4,525
Posted By preethy
Thanks Akshay Hegde for the fix. I was struggling...
Thanks Akshay Hegde for the fix. I was struggling a lot on this. It was really helpful

But the pattern SRT-PKT-ActiveSubCP is not fixed,means there may be anything between [ ]-[ ]-[ ]-[digit]
for...
4,525
Posted By preethy
Hi, I posted in this site after working...
Hi,

I posted in this site after working a lot on this file.But i forgot to post wat i have tried.

I tried matching the pattern separating with - with the following

grep...
4,525
Posted By preethy
Shell script
Hi,

I want to parse csv file s.csv

a,b,server,c,d,e,f,g,h,i,j,k,l,m,n
1,ss,ip-login-date-01,1,2,3,4,5,6,7,8,9,1,2,3
1,dd,cd-login-01,2,3,4,5,6,7,8,9,1,2,3,4,...
1,217
Posted By preethy
Actually am new to perl script,i referred...
Actually am new to perl script,i referred setup.sh to know how they located a file,they have represented address with $,so i gave path like that
1,217
Posted By preethy
Hi MadeInGermany , ...
Hi MadeInGermany ,
Thanks for your help.Am ok with the perl script now.But i have a small doubt regarding accessing root files.Web.xml is the root file.I have called perl...
1,217
Posted By preethy
Help with shell script
Hi all,
I want to replace a pattern in between two lines with another pattern.I tried this using perl script.But i wanted to try this using shell script.I should include this in a script which...
Showing results 1 to 20 of 20

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