Search Results

Search: Posts Made By: pareshkp
4,109
Posted By pareshkp
HI I have tried something below .. sed...
HI

I have tried something below ..

sed 's/.*\:\(... ... .. ..:..:.. ....\) .*/\1/' $inputfiel
4,109
Posted By pareshkp
Add Date in Column data
Hi

Need to add Date to column data as belwo

Input

Date: 2020-04-24
Time Counter C00005A_1 C000B_1
19:00 AC_Sli 10 N/A
19:00 Ac_MG N/A 50
19:00 L_Thhut_MCG 100 N/A

Date: 2020-04-25...
1,536
Posted By pareshkp
No Really !! -bash: xmllint: command not found
No Really !! -bash: xmllint: command not found
1,536
Posted By pareshkp
XML Phase with awk
Hi Guys,

Input XML File :-

<managedObject class="RMOD_R" distName="MRBTS-101/X/R-7">
<list name="activeCellsList">
<p>15</p>
<p>201</p>
</list>
<p...
2,758
Posted By pareshkp
HI Its Base on Below ID <xn:MeContext...
HI Its Base on Below ID

<xn:MeContext id="PPP04156">
2,758
Posted By pareshkp
Split Big XML file Base on tag
HI
I want to split file base on tag name.

I have few header and footer on file


<?xml version="1.33" encing="UTF-8"?>
<bulkCmConfigDataFile"
<xn:SubNetwork id="ONRM_ROOT">
...
951
Posted By pareshkp
Thanks
Thanks
951
Posted By pareshkp
Column to Row base on first and second Column
Input :-

Column to Row

Time CT 1 2 3
17:45 X 10 15 20
18:00 X 15 20 30
18:15 X 10 10 10
18:30 X 5 5 5
17:45 Y 10 15 20
18:00 Y 15 20 30
18:15 Y 10 10 10
18:30 Y 5 5 5

output:-
...
674
Posted By pareshkp
Replace file name from Other File
Hi All,

I have Dir which have 2-3 file and i want to change name of the file base on other text file.

Dir : home/XXX/

201.log
203.log
301.log

CR.txt have Below Data
201 ABC1
203 XYZ2...
1,015
Posted By pareshkp
No..That's Good....
No..That's Good....
1,015
Posted By pareshkp
can we wright in one Line!
can we wright in one Line!
1,015
Posted By pareshkp
Sum of Columns Base on First Column
Input :-

Hd1;Hd2:hd3;Hd4;Hd5
X;1;2;3;4
Y;2;3;5;6
Z;3;5;6;7
X;10;11;24;16
Y;11;23;21;1
Z;10;13;14;15
X;0;1;2;0
K;0;0;0;0
K;0;0;0;0

I want Sum Data base on first column;
...
895
Posted By pareshkp
Print Missing Header Name from File.
HI Guys,

I have file A.txt

ID,L1,L2,L3,L4
1A,2a,33a,44b,55c
2A,10a,14a,15b,16c


File B.txt

ID
L1
L4
L5


Output:-

ID,L1,L4,L5
1,644
Posted By pareshkp
Thanks Guys. Perfect .... But its Stuck...
Thanks Guys.

Perfect ....

But its Stuck when header not found from file2.txt...
1,096
Posted By pareshkp
Split line in 4 parts
Hi Guys,

I have file A.txt

1
2
3
4
5
6
7
8
9
10
11


Want Output :-

1 2 3
1,644
Posted By pareshkp
I have tried Below $ cols=($(sed '1!d;s/,...
I have tried Below

$ cols=($(sed '1!d;s/, /\n/g' $A | grep -nf $B | sed 's/:.*$//'))

$ cut -d ',' -f 1$(printf ",%s" "${cols[@]}") $A
1,562
Posted By pareshkp
Sum of Columns
HI Guys,

I gave Input file F.Txt

ID H1 H2 H3 H4 H5
A 5 6 7 8 9
B 4 65 4 4 7
C 4 4 4 4 4
D 4 4 4 4 4

Output :-


ID H1 H2 H3 H4 H5
Total 17 79 19 20 24

Sum of Each Columns
1,644
Posted By pareshkp
Just Copy Data From One file to another base on...
Just Copy Data From One file to another base on Header Name.
1,644
Posted By pareshkp
Grep Data Base on Header
HI Guys,


File A.txt
UID,HD1,HD2,HD3,HD4
1,2,33,44,55
2,10,14,15,16


File B.txt
UID
HD1
HD4

A.txt B.txt >>>Output.txt

UID,HD1,HD4
1,2,55
2,10,16
1,362
Posted By pareshkp
Phrase XML with Huge Data
HI Guys,


I have Big XML file with Below Format :-

Input :-


<pokl>MKL=1,FN=1,GBNo=B10C</pokl>
<d>192</d>
<d>315</d>
<d>35</d>
<d>0,7,8</d>
<pokl>MKL=1,dFN=1,GBNo=B11C</pokl>...
906
Posted By pareshkp
Grep Data Base on Column
HI

Want to grep data from column header and match with second file.

File A.txt

1 2 3 4 5 6
X1 A L D J Q R
X2 B M K P w T
X3 C S L P e Y
X4 R Z M A r U

...
1,710
Posted By pareshkp
Thanks Guys!!!
Thanks Guys!!!
1,710
Posted By pareshkp
I tried But No Luck :(
I tried But No Luck :(
1,710
Posted By pareshkp
Thanks Buddy ....I will try from my End.
Thanks Buddy ....I will try from my End.
1,710
Posted By pareshkp
Thanks a lot for Code Yes You right and one...
Thanks a lot for Code

Yes You right and one more this ....

It Replace 0 to Null....I want to replace on "" to Null"

Can you try with This Input :



X L1 5
Y L1 10
Z L1 15
X L2 20...
Showing results 1 to 25 of 128

 

Featured Tech Videos

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