01-19-2011
Anurag ,
Thanks lot for your reply but it is not working , only the 1st instance is
shown and not all the COUNTRIES names are mentioned.I have tested your
code today and found the above things.
i.e. The output shows as :
OUTPUT FILE
=============
Abc , 1234 , London ,UK
Def , 2456 , Paris , France
Efg , 3456 , Newyork , USA
Fgh , 1324 , Tokyo , Japan
Hjk , 5829 , California ?
Lmn , 7823 , Chicago ?
Klm , 6472 , Munich , Germany
Jkm , 8231 , Frankfurt ?
Acl , 3241 , Hiroshima ?
Jmp , 2385 , Detroit ?
Lqm , 4613 , Kansas ?
That is the 1st instance of country will be displayed or joined and not in subsequent events ??
I hope I have made things clear .
Last edited by vakharia Mahesh; 01-19-2011 at 11:46 AM..
8 More Discussions You Might Find Interesting
1. Solaris
Somebody HELP!
I have a huge log file (TEXT) 76298035 bytes.
It's a logfile of IMEIs and IMSIS that I get from my EIR node.
Here is how the contents of the file look like:
000000,
1 33016382000913 652020100423994
1 33016382002353 652020100430743
1 33017035101003 652020100441736... (4 Replies)
Discussion started by: axl
4 Replies
2. Shell Programming and Scripting
Hi All
I would like to take contries for this file http://www.textfixer.com/resources/dropdowns/country-dropdown-iso-html.txt and save it in another file with the following structure .
Afghanistan, Åland Islands , Albania, Algeria, American Samoa
Can anyone help me to do this ? (3 Replies)
Discussion started by: molwiko
3 Replies
3. Forum Support Area for Unregistered Users & Account Problems
The forums have been seeing a sharp increase in spam bots, forum robots, and malicious registrations from certain countries. If you have been directed to this thread due to a "No Permission Error" when trying to register please post in this thread and request permission to register, including... (1 Reply)
Discussion started by: Neo
1 Replies
4. Shell Programming and Scripting
Hi below is the input file, i need to find repeated words and sum up the values of it which is second field from the repeated work.Im trying but getting no where close to it.Kindly give me a hint on how to go about it
Input
fruits,apple,20,fruits,mango,20,veg,carrot,12,veg,raddish,30... (11 Replies)
Discussion started by: 100bees
11 Replies
5. What is on Your Mind?
Hi,
I have been working in India since past 13 years and as per Indian IT culture, there will be saturation in Salary which barely matches with rising living costs in India.
I am thinking to move/work in some other country for few years at least which help me financially plus technically. As of... (3 Replies)
Discussion started by: nightup2222
3 Replies
6. Shell Programming and Scripting
Hi all,
I've been trying to write a script to compare two files. This is what I want:
file 1:
a 1 2
b 5 9
c 4 7
file 2:
a
a
c
a
b
Output:
a 1 2
a 1 2 (2 Replies)
Discussion started by: ernesto561
2 Replies
7. UNIX for Beginners Questions & Answers
In two previous posts (here) and (here), I received help from forum members comparing multiple fields across two files and selectively printing portions of each as output based upon would-be matches using awk. I had been fairly comfortable populating awk arrays with fields and using awk's special... (3 Replies)
Discussion started by: jvoot
3 Replies
8. UNIX for Beginners Questions & Answers
Hello all, I am having trouble with what should be an easy task, but seem to be missing something fundamental. I have two files, with File 1 consisting of a single field of many thousands of records. I also have File 2 with two fields and many thousands of records.
My goal is that when $1 of... (2 Replies)
Discussion started by: jvoot
2 Replies
LEARN ABOUT CENTOS
dh_installmenu
DH_INSTALLMENU(1) Debhelper DH_INSTALLMENU(1)
NAME
dh_installmenu - install Debian menu files into package build directories
SYNOPSIS
dh_installmenu [debhelperoptions] [-n]
DESCRIPTION
dh_installmenu is a debhelper program that is responsible for installing files used by the Debian menu package into package build
directories.
It also automatically generates the postinst and postrm commands needed to interface with the Debian menu package. These commands are
inserted into the maintainer scripts by dh_installdeb(1).
FILES
debian/package.menu
Debian menu files, installed into usr/share/menu/package in the package build directory. See menufile(5) for its format.
debian/package.menu-method
Debian menu method files, installed into etc/menu-methods/package in the package build directory.
OPTIONS
-n, --no-scripts
Do not modify postinst/postrm scripts.
SEE ALSO
debhelper(7) update-menus(1) menufile(5)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLMENU(1)