Search Results

Search: Posts Made By: kanthrajgowda
19,037
Posted By kanthrajgowda
AWK to merge multiple files side by side
I have about 100s of files of type text in a known directory. I want to merge all files side by side. Number of lines in all the files will remain same.

For example file1 contains
cat
dog
...
6,351
Posted By kanthrajgowda
Shell Script to compare xml files and print output to a file
All,
PLease can you help me with a shell script which can compare two xml files and print the difference to a output file.

I have attached one such file for you reference.
<Group>
...
4,896
Posted By kanthrajgowda
Find difference between 2 files
I have 2 files as follows.
file1.txt
<cell>123</cell>
<cell>345</cell>


file2.txt

<cell>123</cell>
<cell>456</cell>

out out should be

output.txt
<cell>456></cell>

How do...
8,078
Posted By kanthrajgowda
Anurag, Thanks for all the support - Now...
Anurag,
Thanks for all the support - Now scripts are able to deliver ....Thanks a TON
8,078
Posted By kanthrajgowda
Anurag, Thanks for quick response. As I am...
Anurag,
Thanks for quick response. As I am beginer in Shell need help in understanding the following

awk 'NR==FNR{a[$2]=$0;next;}{print $0,a[$2]}' secondFile firstFile

In the above code
...
8,078
Posted By kanthrajgowda
Find common Strings in two large files
Hi ,
I have a text file in the format

DB2: [NodeID=1]
DB2: [NodeID=2]
WB: [NodeID=3]
WB: [NodeID=3]
WB: [NodeID=3]
WB: [NodeID=3]

and a second text file of the format
...
Showing results 1 to 6 of 6

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