Search Results

Search: Posts Made By: aaysa123
864
Posted By aaysa123
Yes i tried but same is not working can you...
Yes i tried but same is not working
can you pls share nawk command for same
864
Posted By aaysa123
File content comparison
Hi All
I want to do file comparison based on first field
File1
1,A
2,B
3,C
4,E


File2
1,A
3,C
4,E
8,K


want to generate 3 different output as below
Entry in file1 but not in file2...
767
Posted By aaysa123
Content of file in single line
Hi I want to create output file which is having entries from source file in single line

a.txt

<output type="event">
<moduleId>abc</moduleId>
...
1,337
Posted By aaysa123
Thanks it worked fine
Thanks it worked fine
1,337
Posted By aaysa123
Compare & print content of file which is not matching
Hi All
I want to compare 2 files using awk and get output of content which is not matching

I have 2 files
a.txt
123
456
780
143

b.txt
A|B|C|167|D|E
C|K|D|123|D|E
A|B|D|789|G|F...
1,449
Posted By aaysa123
I have tried but it is not giving required o/p ...
I have tried but it is not giving required o/p

awk -F',' ' { for (i = 1; i <= NF; ++i) print i, $i; exit } ' test
1,449
Posted By aaysa123
Colum number where value is >0
Hi All
I want to findout coloum number where value is >0 from below string
Can we do using awk or any command ?
Thanks in advance
...
780
Posted By aaysa123
Thanks for your quick reply
Thanks for your quick reply
780
Posted By aaysa123
New line and word after each line
Hi All
I have a input file having below format. I want to add a word after each line


AAA BBB CCC
AAA BBB CCCD EEEE


I want to have op like below

AAA BBB CCC
go
AAA BBB CCCD EEEE
go...
Forum: Solaris 09-30-2015
1,449
Posted By aaysa123
Default route in system
Hi All
Recently we have faced issue in SUN server
after reboot of node 2 default routs has been added to system as below

IRE Table: IPv4...
1,549
Posted By aaysa123
can you pls revert for other two requirement as...
can you pls revert for other two requirement as well
1,549
Posted By aaysa123
join -t, -o "1.1 1.2 2.2" a b
join -t, -o "1.1 1.2 2.2" a b
1,549
Posted By aaysa123
I tried using join and awk both but didnt work ...
I tried using join and awk both but didnt work
I have only basic knowledge of awk :(
1,549
Posted By aaysa123
File comparisons
Hi all,

I want to compare two files based on column value
Kindly help me
a.txt
123,ABCD
456,DEF
789,SDF

b.txt
123,KJI
456,LMN
321,MJK
678,KOL

Output file should be like
Common on...
1,073
Posted By aaysa123
Thanks for reply. Currently I am writing a awk...
Thanks for reply.
Currently I am writing a awk program and running that by using

nawk -F" " -f b.awk file

Can I give complete command in a single line
like

nawk -F" " BEGIN '{ x=0 }...
1,073
Posted By aaysa123
if statement is not giving correct op
Hi I am using a awk command but not getting required o/p.
input file
a.txt
2 ak
3 cb
4 de
5 gh
6 ij
awk program

BEGIN { x=0 }
{if ($1>3) {x=x+1}{print $0} }
END { print "I found "...
1,357
Posted By aaysa123
Count value between | sign
Hi
I have a file inw which values are seperated by "|"
I want to count number of values present in each line of the file
Input file

AS|23 34|BD|A2|890
AK|23 44|D|A2|89076|89
AF|23...
12,093
Posted By aaysa123
print ODD lines
i want to print ODD lines like first ,third then fifth and so on


234,567,ABC,KJL
234,565,ABD,KJL
234,568,ABE,KJL
234,560,ABF,KJL
234,563,ABG,KJL
234,562,ABH,KJL

O/P will be like...
4,903
Posted By aaysa123
Hi I am not getting correct output My actual...
Hi I am not getting correct output
My actual file is like


<?xml version="3.0" encoding="ISO-8799-1" standalone="yes"?>
<Config File="trees/banking/saved/data.xml" Origin="Member1">...
4,903
Posted By aaysa123
Hi thanks for your reply Can we also print the...
Hi thanks for your reply
Can we also print the line number of starting tag
like op


Line 5 abc=3
Line 11 abc=2
4,903
Posted By aaysa123
count number of lines between two tag
Hi
I have a big xml file of having many data
</Data>
</Node>
<Node>
List
<abc>3932590983
3396003964
3355713230</abc>
</Data>
</Node>
</Data>
</Node>
<abc>3932590983
3396003964</abc>I...
1,726
Posted By aaysa123
File comparision
Hi All
I have to files
cat a.txt
AAA
BBB
CCC
DDD

and
cat b.txt
AAA
CCC
EEE

i want to compare these two files and o/p should have content of file a.txt which is not in file b.txt...
1,659
Posted By aaysa123
File comparision
Hi All
I have to files
cat a.txt
AAA
BBB
CCC
DDD

and
cat b.txt
AAA
CCC
EEE

i want to compare these two files and o/p should have content of file a.txt which is not in file b.txt...
1,790
Posted By aaysa123
Hi when i am giving this comman i m getting error...
Hi when i am giving this comman i m getting error like

nawk -F"," '!a[$1$4]++' test
a[: Event not found.
1,790
Posted By aaysa123
uniq the file content
Hi
I want to uniq the content of a file based on 4th field

a.txt
abcd,123,456,234,asd
defg,123,456,235,asd
abcd,123,456,234,asd,lkjl,ijk
ijkl,123,456,234,asd
defg,123,456,235,asd,dfg,klm
...
Showing results 1 to 25 of 42

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