Sponsored Content
Full Discussion: Non Duplicates
Top Forums Shell Programming and Scripting Non Duplicates Post 302292225 by awk_beginner on Friday 27th of February 2009 07:02:51 AM
Old 02-27-2009
Non Duplicates

I have input file like below.


I00789524 0213 5212
D00789524 0213 5212
I00778787 2154 5412

The first two records are same(Duplicates) except I & D in the first character. I want non duplicates(ie. 3rd line) to be output. How can we get this . Can you help. Is there any single AWK or SED command.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

removing duplicates

Hi I have a file that are a list of people & their credentials i recieve frequently The issue is that whne I catnet this list that duplicat entries exists & are NOT CONSECUTIVE (i.e. uniq -1 may not weork here ) I'm trying to write a scrip that will remove duplicate entries the script can... (5 Replies)
Discussion started by: stevie_velvet
5 Replies

2. Shell Programming and Scripting

Duplicates to be removed

Hi, I have a text file with 2000 rows and 2000 columns (number of columns might vary from row to row) and "comma" is the delimiter. In every row, there maybe few duplicates and we need to remove those duplicates and "shift left" the consequent values. ex: 111 222 111 555 444 999 666... (6 Replies)
Discussion started by: prvnrk
6 Replies

3. HP-UX

getting duplicates

how to get duplicates in a file containing data in columns using command or scripting? (4 Replies)
Discussion started by: megh
4 Replies

4. Shell Programming and Scripting

Numbering duplicates

Hi, I have this large file and sometimes there are duplicates and I want to basically find them and figure how many there are. So I have a file with multiple columns and the last column (9) has the duplicates. eg. yan tar tar man ban tan tub tub tub Basically what I want to... (6 Replies)
Discussion started by: kylle345
6 Replies

5. UNIX for Dummies Questions & Answers

Duplicates

Hi, How to eliminate the duplicate values in unix? I have a excel file which contains duplicate values. Need to use this in a script. Thanks in advance. (3 Replies)
Discussion started by: venkatesht
3 Replies

6. UNIX for Advanced & Expert Users

removing duplicates.

Hi All In unix ,we have a file ,there we have to remove the duplicates by using one specific column. Can any body tell me the command. ex: file1 id,name 1,ww 2,qwq 2,asas 3,asa 4,asas 4,asas o/p: 1,ww 2,qwq 3,asa (7 Replies)
Discussion started by: raju4u
7 Replies

7. Emergency UNIX and Linux Support

Removing all the duplicates

i want to remove all the duplictaes in a file.I dont want even a single entry. For the input data: 12345|12|34 12345|13|23 3456|12|90 15670|12|13 12345|10|14 3456|12|13 i need the below data in one file 15670|12|13 and the below data in another file (9 Replies)
Discussion started by: pandeesh
9 Replies

8. AIX

Duplicates in bootlist

Hello, I'm moving some disks from the rootvg on AIX 5.3. # replacepv hdiskOLD hdiskNEW I have for example hdisk12 and hdisk13 with hd5 (boot) LV and want to move hdisk13 So 1st I'm excluding it from the bootlist: # bootlist -om normal hdisk12 then # replacepv hdisk13... (7 Replies)
Discussion started by: emoubi
7 Replies

9. Shell Programming and Scripting

How to ID duplicates in a string

Hi guys, I am trying to identify the number of duplicate entries in a string inputed by the user. Here is a command I use: $ user_input="M T T" $echo "${user_input}" | awk '{for(i=0;i<=NF;i++) print $i }'| sort | uniq -d The above works fine for string with multiple letters. The problem is... (2 Replies)
Discussion started by: aoussenko
2 Replies

10. Shell Programming and Scripting

Do Not Output Duplicates

Mac OS 10.9 Let me preface this by saying this is not for marketing or spamming purposes. I have a script that scans all the email messages in a directory (~/Library/Mail/Mailboxes) and outputs a single column list of email addresses. This will run multiple times a day and append the output... (3 Replies)
Discussion started by: sudo
3 Replies
MBCONV(1)																 MBCONV(1)

NAME
mbconv - Character encoding scheme converter SYNOPSIS
mbconv [options] <file> ... DESCRIPTION
This is an application of a library to handle multiple octets character encoding: http://pub.ks-and-ks.ne.jp/prog/libmoe/ mainly written for debugging of the library. It reads octet by octet from files given on command line (or standard input if no file is specified), converts character encoding scheme (CES) as specified by command line options (described below), and output to standard output (or a file specified by -t option or -a option). Options -?, -h, --help display summary of options and exits. -a file, --append-to=file output is appended to file. -c converters, --convert-to=converters specifies character encoding conversion. converters must be comma separated list of words described in "Conversion specifiers". -f flags, --flag=flags specifies flags to change behavior of conversion. flags must be comma separated list of words describe in "Flag specifiers". -i, --input succeeding options apply to input stream. -m string, --mime-charset=string mime encoding conforming to RFC2047 is performed. <string> is used as charset name. -n, --line-number line number (>= 1) is inserted to beginning of each line. -o, --output succeeding options apply to output stream. -t file, --to=file output to file (truncated). -w, --width output width of each line. -cs <string>, --charset=string specifies charset name. Some language specifications are also accepted as well as MIME charset names, which are used to restrict can- didates of encoding scheme of input stream. Acceptable languages are listed in "Acceptable languages". --format=string specifies output format --which output charset name of each input stream to stderr, in the form file name":" charset name if two or more files are specifed on the command line, or charset name otherwise. --regex=regular expression specifies regeular expression to filter output. Character encoding of regular expression can be specified by putting string of the form "*"charset name"*" at the beginning of the regular expression, otherwise UTF-8. Character encoding of the expression is converted to that of output stream before matching. Conversion specifiers Conversion is applied just before each character is output to stream. Conversion setup is automatically performed based on CES. So in most cases, yo need not to specify converters explicitly. ascii domestic ASCII converted to US-ASCII, ces converted appropriately according to the CES bound to input/output stream, to-ucs converted to Unicode, f2h, full-to-half Fullwidth compatibility characters are converted to corresponding halfwidth ones, h2f, half-to-full Halfwidth compatibility characters are converted to corresponding fullwidth ones, jisx0213 Codepoints in JIS C 6226 or in JIS X 0208 which are bound to no character are converted into JIS X 0213 plane 1, jisx0213-aggressive All codepoints in JIS C 6226 or in JIS X 0208 are converted into JIS X 0213 plane 1, ms-latin1 Unicode characters of code point between 0x80 and 0x9F (both inclusive) are converted to other Unicode characters as if they are char- acters of those code point in Microsoft Windows Codepage 1252. ucs-to-jis0208-extra, jis0208-to-ucs-extra Converters between some JIS X 0208 and Unicode characters having similar glyphs (by the courtesy of Ambrose Li <acli@ada.dhs.org>). Flag specifiers use-0x28-for-94x94inG0, 28 use "1/11 2/4 2/8 F" instead of "1/11 2/4 F" to designate charsets with final octet 4/0, 4/1, or 4/2 to G0, ac, ascii-at-control escape sequence "1/11 2/8 4/2" is output before every control character, nossl, ignore-7bit-single-shift escape sequence for 7 bit single shift is ignored, dnc, discard-notprefered-char discard characters which CES bound to output stream can not decode. Acceptable languages The following words may be given instead of MIME charset name for input stream. In that case, encoding scheme is automatically detected (hopefully) among succeeding ones. c, cn, china, chinese x-gb-18030-2000, cn-big5, utf-8, or x-euc-tw. j, ja, jp, japan, japanese euc-jp, shift_jis, or utf-8. k, ko, kr, korea, korean euc-kr, x-johab, utf-8, or x-unified-hangul. cjk iso-8859-1, x-gb-18030-2000, cn-big5, x-euc-tw, euc-jp, shift_jis, euc-kr, x-johab, x-unified-hangul, or utf-8. AUTHOR
Kiyokazu SUTO <suto@ks-and-ks.ne.jp> DISCLAIMER etc. This program is distributed with absolutely no warranty. Anyone can use, modify, and re-distibute this program without any restriction. 3rd Berkeley Distribution 2001-03-12 MBCONV(1)
All times are GMT -4. The time now is 06:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy