Sponsored Content
Top Forums Shell Programming and Scripting Find similar entry in a .txt file acting as a database. Post 302491303 by dsw on Thursday 27th of January 2011 06:05:56 AM
Old 01-27-2011
Hi,

you would want both -x and -v, to ensure you omit the exact match.
 

10 More Discussions You Might Find Interesting

1. SCO

Terminal Control Database Entry

Hi, can someone pls help resolves this problem. I have an Openserver 5.0.4 running but had this error after having a power failure problem. error: cannot access termainl control database entry I have a arnetport also install with wyse 60 terminals, non of the users can have access on... (2 Replies)
Discussion started by: kayode
2 Replies

2. Shell Programming and Scripting

txt file to oracle database

hiya, i have a query: i want to read a file which contains: 2005/02/21 16:56:54.301: 111 PS (200, 10) sent <log instrument="FXA.ROSS"... (9 Replies)
Discussion started by: jorhul
9 Replies

3. UNIX for Dummies Questions & Answers

find lines in file1.txt not found in file2.txt memory problem

I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory) diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//' Is there a better more efficient way to find the lines in one file... (5 Replies)
Discussion started by: raptor25
5 Replies

4. Shell Programming and Scripting

Using csh / awk / sed to compare database sizes in a txt file

Hello, I have an output file showing database sizes across the 3 environments that I use (LIVE, TEST & DEVELOPMENT). I am trying to write a script that lets me know if the size of a db on one environment is different to its corresponding db on the other environments. Here is an example... (4 Replies)
Discussion started by: stevie_g
4 Replies

5. Shell Programming and Scripting

Perl program for find one entry and put in different file

Hi I have a file name1 xxxxx name1 xxxxx name1 yyyyy name 1 zzzzz name1 Uniprot Id 1234 name2 sssss name2 eeeee name2 bengamine name2 Uniprot Id 3456 ......................and so on I have to capture Uniprot IDs only in a separate file so that output contain only ... (20 Replies)
Discussion started by: manigrover
20 Replies

6. UNIX for Dummies Questions & Answers

Statement to find if an entry exists in a file

I need to check if an entry input by the user is in a file. If so, I need to run a command, and if it does not exist then it should output entry does not exist. So I have so far... echo "Enter record:" read record //command || //command Can I use an if statement to do this? (3 Replies)
Discussion started by: itech4814
3 Replies

7. Red Hat

How to find a garbage entry in a column wise text file in Linux?

Suppose I have a file containing :- 1 Apple $50 2 Orange $30 3 Banana $10 4 Guava $25 5 Pine@apple $12 6 Strawberry $21 7 Grapes $12 In the 5th row, @ character inserted. I want through sort command or by any other way this row should either on top or bottom. By sort command garbage... (1 Reply)
Discussion started by: Dipankar Mitra
1 Replies

8. Shell Programming and Scripting

Add similar pairs in a txt file

Hi guys!!! In my txt file there are a lot of pairs. Some of them are similar, so I am trying to add these pairs. For a example: File: ASP - GLN = 14 SER - GLU = 14 ARG - ASN = 13 ARG - TYR = 13 ASP - ARG = 13 GLU - ARG = 13 GLU - GLN = 13 ALA - ARG = 12 ... (7 Replies)
Discussion started by: Tzole
7 Replies

9. HP-UX

Sudo entry required to set permission similar to ROOT without using password (PASSWD) change optio

Hi All I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies

10. Shell Programming and Scripting

Awk, sed, shell all words in INPUT.txt find in column1 of TABLE.txt and replce with column2 in

Hi dears i have text file like this: INPUT.txt 001_1_173 j nuh ]az 001_1_174 j ]esma. nuh ]/.xori . . . and have another text like this TABLE.txt j j nuh word1... (6 Replies)
Discussion started by: alii
6 Replies
XrmMergeDatabases(3)						  XLIB FUNCTIONS					      XrmMergeDatabases(3)

NAME
XrmMergeDatabases, XrmCombineDatabase, XrmCombineFileDatabase - merge resource databases SYNTAX
void XrmMergeDatabases(XrmDatabase source_db, XrmDatabase *target_db); void XrmCombineDatabase(XrmDatabase source_db, XrmDatabase *target_db, Bool override); Status XrmCombineFileDatabase(char *filename, XrmDatabase *target_db, Bool override); ARGUMENTS
source_db Specifies the resource database that is to be merged into the target database. target_db Specifies the resource database into which the source database is to be merged. filename Specifies the resource database file name. override Specifies whether source entries override target ones. DESCRIPTION
Calling the XrmMergeDatabases function is equivalent to calling the XrmCombineDatabase function with an override argument of True. The XrmCombineDatabase function merges the contents of one database into another. If the same specifier is used for an entry in both data- bases, the entry in the source_db will replace the entry in the target_db if override is True; otherwise, the entry in source_db is dis- carded. If target_db contains NULL, XrmCombineDatabase simply stores source_db in it. Otherwise, source_db is destroyed by the merge, but the database pointed to by target_db is not destroyed. The database entries are merged without changing values or types, regardless of the locales of the databases. The locale of the target database is not modified. The XrmCombineFileDatabase function merges the contents of a resource file into a database. If the same specifier is used for an entry in both the file and the database, the entry in the file will replace the entry in the database if override is True; otherwise, the entry in the file is discarded. The file is parsed in the current locale. If the file cannot be read, a zero status is returned; otherwise, a nonzero status is returned. If target_db contains NULL, XrmCombineFileDatabase creates and returns a new database to it. Otherwise, the database pointed to by target_db is not destroyed by the merge. The database entries are merged without changing values or types, regard- less of the locale of the database. The locale of the target database is not modified. SEE ALSO
XrmGetResource(3), XrmInitialize(3), XrmPutResource(3) Xlib - C Language X Interface X Version 11 libX11 1.5.0 XrmMergeDatabases(3)
All times are GMT -4. The time now is 09:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy