I have a file that needs to index and remove all duplicate variables (keeping the first of the duplicated). Then in another file, from the index I need to find and replace all those duplicated variables we deleted with their primary variable (the one we kept). I think this is a SED question, but if there are any better solutions I would greatly appreciate it.
Example:
Notice how m2, m3, m4, and m5 are the same. I need to delete m3, m4 and m5 and keep m2. Then in another file I have I need to find all variables m3, m4 and m5 and replace them with m2 because they no longer exist.
newmtl mXXX is the name and map_Kd is what determines if it is a duplicate. In this case we have map_Kd 951E01Other4040.bmp in others we have map_Kd A1C039w20h200x1CCOLORS.bmp and over 20 other meanings for map_Kd.
Hope I explained that in enough understandable detail. Let me know your thoughts.
Thank you!
Hi,
I am trying to remove duplicate lines from a file. For example the contents of example.txt is:
this is a test
2342
this is a test
34343
this is a test
43434
and i want to remove the "this is a test" lines only and end up with the numbers in the file, that is, end up with:
2342... (4 Replies)
Hi,
I need to concatenate three files in to one destination file.In this if some duplicate data occurs it should be deleted.
eg:
file1:
-----
data1 value1
data2 value2
data3 value3
file2:
-----
data1 value1
data4 value4
data5 value5
file3:
-----
data1 value1
data4 value4 (3 Replies)
Hello,
I am in need of removing duplicate lines from within a file per section.
File:
ABC1 012345 header
ABC2 7890-000
ABC3 012345 Header Table
ABC4
ABC5 593.0000 587.4800
ABC5 593.5000 587.6580 <= dup need to remove
ABC5 593.5000 ... (5 Replies)
Can anyone help me to removing duplicate records from 2 separate files in UNIX?
Please find the sample records for both the files
cat Monday.dat
3FAHP0JA1AR319226MOHMED ATEK 966504453742 SAU2010DE
3LNHL2GC6AR636361HEA DEUK CHOI 821057314531 KOR2010LE
3MEHM0JG7AR652083MUTLAB NAL-NAFISAH... (4 Replies)
Discussion started by: zooby
4 Replies
7. Post Here to Contact Site Administrators and Moderators
I have made some threads that were identical and were about the same question :( I've made them in 3 forums , the moderator has moved and merged one of these threads. There is one thread left and it need to be merged or deleted. Is there any way I can delete it or merge it myself ? I have delete... (1 Reply)
Hi everybody
I have a .txt file that contains some assembly code for optimizing it i need to remove some replicated parts.
for example I have:e_li r0,-1
e_li r25,-1
e_lis r25,0000
add r31, r31 ,r0
e_li r28,-1
e_lis r28,0000
add r31, r31 ,r0
e_li r28,-1 ... (3 Replies)
Hello Experts,
I am trying to write a shell script to find duplicate items in an array, this is what i have tried :
#!/bin/bash
echo "This is another sample Progg to remove duplicate items from an array"
echo "How many number do you want to insert"
read n
for (( i=0; i<$n; i++ ))
do
... (5 Replies)
Discussion started by: mukulverma2408
5 Replies
LEARN ABOUT DEBIAN
sundancer2
RSS Other Screensaver(1) General Commands Manual RSS Other Screensaver(1)NAME
sundancer2 - rotating stack of quads.
SYNOPSIS
sundancer2 [--root/-r] [--maxfps/-x number] [--vsync/-y number] [--dpms/-M number] [--quad_count/-q number] [--speed/-s number] [--trans-
parency/-t number] [--foreground/-f number] [--background/-b number] [--reverse/-e] [--no-reverse/-E]
DESCRIPTION
Neat rotation effects from rotation and skewing stack of transparent squares.
Ported to Linux by Tugrul Galatali.
OPTIONS --root Draw on the root window.
--maxfps number
Set maximum frame rate.
--vsync number
Limit redraws to specified number of vertical refreshes. 0 - 100. Default: 1
--dpms number
Stop rendering new frames if the display is not on. 0 - 1. Default: 1
--quad_count number
Set number of stacked quads. 1 - 300. Default: 150
--speed number
Rotational speed. 1 - 40. Default: 20
--transparency number
Percentage of transparency. 1 - 100. Default: 75
--foreground number
Color for the top of the heap using hex color codes. 000000 - ffffff. Default: ffff00
--background number
Color for the bottom of the heap using hex color codes. 000000 - ffffff. Default: ff0000
--reverse
Reverse rotation occasionally. Default: False
ENVIRONMENT
DISPLAY to get the default host and display number.
SEE ALSO X(1),
COPYRIGHT
Copyright (C) 2002 by Dirk Songuer and Tugrul Galatali.
Sundancer2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as pub-
lished by the Free Software Foundation.
Sundancer2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
AUTHOR
Dirk Songuer <delax@sundancerinc.de> and Tugrul Galatali <tugrul@galatali.com>
X Version 11 RSS Other Screensaver(1)