Search Results

Search: Posts Made By: unme
1,346
Posted By unme
Thanks a lot, really its best solution. I took...
Thanks a lot, really its best solution. I took long time to write c program, But your solution is very compacted really thanks a ton.
1,346
Posted By unme
Its not assignment, as part of my regular work I...
Its not assignment, as part of my regular work I am doing it... Some how tried to achieve the same using C program with 8 input records.

#include<stdio.h>

char emp[7][3] = {{'A', 'B'},
...
1,346
Posted By unme
Fetch parent value based on column values
Hi All,

I am trying to achieve the below logic, could you please help me in this.

In second row 2nd column I've Value JC2 and the same JC2 is 4th row 1st column.So I need to replace JC2 value...
990
Posted By unme
Thanks a lot its working fine
Thanks a lot its working fine
990
Posted By unme
Convert Singleline to Multilines
Hi All,

Could you please help to get the below output:

Input:

J1,ELLA_1,ISDR,JJK,TRS
J2,ROSTER,JACK
J3,HUP
...
...
...


Output:

J1,ELLA_1
J1,ISDR
J1,JJK
J1,TRS
1,641
Posted By unme
perl -0777 -pe...
perl -0777 -pe 's{<([^/>\s]+)([^>]*)>(?:\s*<([^>]*)\s*>\s*)?</\1\s*>}{<$1$2>$3</$1>}gms;'

Above code working perfectly, Thanks a lot all for your inputs.
1,641
Posted By unme
Thanks a lot for your input, It will contains...
Thanks a lot for your input, It will contains characters, sapces
Input:

<?xml version="1.0" encoding="UTF-16"?>
<P1 >
<C1 type="i"><abc txt></C1>
<V1 type="string"><6.2 txt></V1>
<D1...
1,641
Posted By unme
XML text bounded with tag
Could you please give your inputs on the below issue:

source.xml

<?xml version="1.0" encoding="UTF-16"?>
<P1 >
<C1 type="i"><2></C1>
<V1 type="string"><6.2></V1>
<D1 type="string">...
1,957
Posted By unme
Thanks a lot Its working Perfectly
Thanks a lot Its working Perfectly
1,957
Posted By unme
The oder I am meaning is: Per Country...
The oder I am meaning is:

Per Country maximum rows I will get is 3 and minimum is 2.

For example, If I get only 2 rows per country above script will generate only 3 columns i.e.,

IN,A,5...
1,957
Posted By unme
Modified slightly to delimited file: awk ...
Modified slightly to delimited file:


awk -F, '{c[$1]; a[$2]; v[$1,$2]+=$3}
END { printf "XX%s", ","; for (i in a) printf "%s,", i; print "";
for...
1,957
Posted By unme
Transpose rows to columns complex
Input:

IN,A,1
IN,B,3
IN,B,2
IN,C,7
BR,A,1
BR,A,5
BR,C,9
AR,C,9


Output:

CNTRY,A,B,C
IN,1,5,7
BR,6,0,9
AR,0,0,9
896
Posted By unme
Thanks a lot
Thanks a lot
896
Posted By unme
Looping and fetch few rows
Could you please let me know how to start coding for the below requirement, based on your inputs I will start writing the code:

InputFile.txt


#Comment1
#Comment2
#Comment3
StartJob
Job...
2,168
Posted By unme
Insert New Line Character
Hi,
If my first character of a line starts with 2 then after 5th charecter newline character should be inserted.

Input.txt:

a1234567890
2222300007
bsdfsdf888999999
ssdfkjskfdjskfdjd...
1,563
Posted By unme
Thanks a lot working fine...
Thanks a lot working fine...
1,563
Posted By unme
Find All duplicates based on multiple keys
Hi All,

Input.txt

123,ABC,XYZ1,A01,IND,I68,IND,NN
123,ABC,XYZ1,A01,IND,I67,IND,NN
998,SGR,St,R834,scot,R834,scot,NN
985,SGR0399,St,R180,T15,R180,T1,YY
985,SGR0399,St,R180,T15,R180,T1,NN...
Forum: Red Hat 05-22-2013
11,784
Posted By unme
Difference b/n AIX & Red Hat Linux Commands
Hi All,

The scripts developed in AIX can be executed in Red Hat Linux too? Because, we are migrating OS from AIX to LINUX.

Will there be any differences in commands?

Thanks in advance!!!
...
1,662
Posted By unme
Thanks all I will check for it.
Thanks all I will check for it.
1,662
Posted By unme
find un-closed tags in XML files
Hi All,

I am trying to validate XMLs from a folder:

Input Directory having multiple XML files:

File1.xml

<Root>
<Parent>
<Child Name="One">
<Foo>...</Foo>
...
1,475
Posted By unme
Thanks a lot its working fine
Thanks a lot its working fine
1,475
Posted By unme
XML - Split And Extract String between Chars
Hi,

I am trying to read the records from file and split into multiple files.
SourceFile.txt

<?xml version="1.0" encoding="UTF-8"?>...
3,404
Posted By unme
Thanks all...
Thanks all...
3,404
Posted By unme
Text Splitter
Hi,

I need to split files based on text:

BEGIN DSJOB
Identifier "LA"
DateModified "2011-10-28"
TimeModified "11.10.02"
BEGIN DSRECORD
Identifier "ROOT"
BEGIN...
1,763
Posted By unme
Thanks for your reply radoulov, Sorry for...
Thanks for your reply radoulov,
Sorry for confusion you by providing sample data.. below is the original file where I need get only values

Identifier==> "ListFileNames"

Then Name & Prompt...
Showing results 1 to 25 of 27

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