Sponsored Content
Top Forums Shell Programming and Scripting Remove regularly repeated lines Post 302751171 by radoulov on Thursday 3rd of January 2013 10:04:15 AM
Old 01-03-2013
Your requirement doesn't seem to match the sample data:

Code:
EDGE 1 2 12 
EDGE 2 3 23 
EDGE 3 4 34 
EDGE 5 6 56

These are four, not five lines.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove repeated line using Perl

I am new to Perl and in text file of around 1000 lines having around 500 repeated line which I felt is no use and want to remove these line.so can somebody help in same for providing sample code how can i remove these repeated line in a file. (11 Replies)
Discussion started by: dinesh.4126
11 Replies

2. Shell Programming and Scripting

remove anything after repeated string pattern found

HI, Can anyone help me with a script. i/p calc 1 2 3 4 5 6 7 8 calc 4 5 6 calc 7 8 9 o/p calc 1 2 3 4 5 6 7 8 calc 4 5 6 i.e remove anything after where two times the string calc is found. thanks (3 Replies)
Discussion started by: Indra2011
3 Replies

3. Shell Programming and Scripting

remove brackets and put it in a column and remove repeated entry

Hi all, I want to remove the remove bracket sign ( ) and put in the separate column I also want to remove the repeated entry like in first row in below input (PA156) is repeated ESR1 (PA156) leflunomide (PA450192) (PA156) leflunomide (PA450192) CHST3 (PA26503) docetaxel... (2 Replies)
Discussion started by: manigrover
2 Replies

4. Shell Programming and Scripting

need to print lines between repeated pattern

Hi all, I have a file that looks like this: uid=bessemsj version: 1 dn: cn=Desk SpecialAdminDesk, ou=Desks, dc=DSS,c=nl,o=Vodafone dn: cn=DSS Advisors, ou=Groups, dc=DSS,c=nl,o=Vodafone dn: cn=DSS Dispatcher,ou=Groups,dc=DSS,c=nl,o=Vodafone dn: cn=Desk Retention Desk,ou=Desks,... (13 Replies)
Discussion started by: Eman_in_forum
13 Replies

5. Shell Programming and Scripting

ksh Remove and replace repeated in file

Hi, i need to read a line from a file and count the number of times it appear in, then continuous to the second line with the same. So when i count a line i have to remove all duplicates in the file to not count it another time. while read line do n=$(grep -c $line File) print "$line... (5 Replies)
Discussion started by: ToniX
5 Replies

6. Shell Programming and Scripting

Getting most repeated 3 lines

Hi all if i want to get the 3 lines of the most repeated lines here tony,1,x tony,1,x tony,2,x tony,2,x tony,3,x tony,4,x tony,5,x adam,1,y to get output tony,1,x tony,2,x tony3,x adam,1,y (3 Replies)
Discussion started by: teefa
3 Replies

7. Shell Programming and Scripting

Compare two files with repeated lines

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

8. Shell Programming and Scripting

Repeated lines-case sensitive

Hi, users file contains below names i have a requirement to keep only one case sensitive user. For e.g if user name is "aaa" then only aaa should be there in the file and other matching users(AAA,aaA) should be deleted. Tried multiple options but no luck can you please help. aaa abc AAA... (2 Replies)
Discussion started by: Satyak
2 Replies

9. Shell Programming and Scripting

Remove repeated letter words

Hi, I have this text file with these words and I need help with removing words with repeated letter from these lines. 1 ama 5 bib 29 bob 2 bub 5 civic 2 dad 10 deed 1 denned 335 did 1 eeee 1 eeeee 2 eke 8... (4 Replies)
Discussion started by: crepe6
4 Replies

10. Shell Programming and Scripting

Remove duplicate lines which has been repeated 4 times

Remove duplicate lines which has been repeated 4 times attached test.txt below command tried and not getting expect output. for i in `cat test.txt | uniq` do num=`cat test.txt | grep $i | wc -l` echo $i $num done test.txt ... (17 Replies)
Discussion started by: Kalia
17 Replies
UKYOPON(4)						   BSD Kernel Interfaces Manual 						UKYOPON(4)

NAME
ukyopon -- Kyocera AIR-EDGE PHONE support SYNOPSIS
ukyopon* at uhub? ucom* at ukyopon? portno ? #include <dev/usb/ukyopon.h> DESCRIPTION
The ukyopon driver provides support for Kyocera AIR-EDGE PHONE AH-K3001V. Two units of this driver attach to an AIR-EDGE PHONE: the modem port and the data transfer port. The modem port is compatible to umodem(4), and can be used for dialup connections. The data transfer port is for reading and writing internal storage of AIR-EDGE PHONE. Both devices are accessed through the ucom(4) driver which makes them behave like a tty(4). The manipulation of the internal storage is through external programs, for example, the pkgsrc/comms/kyopon package. IOCTLS
The following ioctl(2) calls apply to the ukyopon device: UKYOPON_IDENTIFY struct ukyopon_identify Read, from the kernel, the identification information of the device, useful to assure that the opened device node is a modem or a data transfer port of ukyopon device. struct ukyopon_identify { char ui_name[16]; /* driver name */ int ui_busno; /* usb bus number */ uint8_t ui_address; /* device address */ enum ukyopon_model { UKYOPON_MODEL_UNKNOWN } ui_model; /* possibly future use */ enum ukyopon_port { UKYOPON_PORT_UNKNOWN, UKYOPON_PORT_MODEM, /* modem port */ UKYOPON_PORT_DATA /* data transfer port */ } ui_porttype; /* port type */ int ui_rsvd1, ui_rsvd2; }; #define UKYOPON_NAME "ukyopon" The ui_name field contains the driver signature, and has the string UKYOPON_NAME. The ui_busno field contains the usb(4) bus number to which the device is connected; the ui_address field contains the address of the device in the bus. These fields are useful to identify the physical device from the file descriptor. The ui_porttype field contains the type of device: UKYOPON_PORT_MODEM means the device is associated to the modem port, and UKYOPON_PORT_DATA means the device is associated to the data transfer port. Other fields are reserved for future extension and cleared to zeros. In addition, ukyopon devices accept all ioctl(2) calls that umodem(4) accepts. SEE ALSO
tty(4), ucom(4), umodem(4), usb(4), pkgsrc/comms/kyopon HISTORY
The ukyopon driver appeared in NetBSD 3.0. NOTES
``Kyopon'' is a widely-used nickname of Kyocera AIR-EDGE PHONE. BSD
May 18, 2005 BSD
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy