Sponsored Content
Top Forums Shell Programming and Scripting Request to check:find out common entries Post 302635493 by Scrutinizer on Saturday 5th of May 2012 05:44:35 AM
Old 05-05-2012
Or split it in one go.
Code:
awk 'NR==FNR{A[$0]; next} $0 in A{ print>f; next}1' f=common file1 file2 > notcommon

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Request to check:remove entries more than once

Hi I have a file like this 1234 2345 567889 567889 2345 234899420 83743 2345 67890 67890 ................ so on I want to delete entries which are more than once like 2345, 567889 and 67890 so that these appear once (4 Replies)
Discussion started by: manigrover
4 Replies

2. Shell Programming and Scripting

Request to check:remove entries with blank spaces

Hi I want to remove entries with blank spaces in my input file: 123 234 456 678 56789 345346456 589 3454 345456 3454566............................ (2 Replies)
Discussion started by: manigrover
2 Replies

3. Shell Programming and Scripting

Request to check:remove entries with N/A mentioned

Hi I have a file with following entries 122 N/A 123 5654656 123423 43534543 4544 45435 435454 N/A i Have to remove entries with N/A so that only 123 5654656 123423 43534543 4544 45435 remain in output file can anybody guide for a code/unix/perl (2 Replies)
Discussion started by: manigrover
2 Replies

4. Shell Programming and Scripting

Request to check:remove entries more than once in different column

Hi I have a file 12m 345693460 12 1234 12 1234 34 345 34 345 And I want output fiel as 12m 345693460 12 1234 34 345 hw can it be done Thanks (1 Reply)
Discussion started by: manigrover
1 Replies

5. Shell Programming and Scripting

Request to check: Not printing all entries

Dear all, I am facing one problem in my input file there are many Entries which starts from *FIELD * AV (checked the attached file) I want all the entries in the output file which start from *FIELD * AV I have written this programm but its not printing all the entries with *FIELD... (4 Replies)
Discussion started by: manigrover
4 Replies

6. Shell Programming and Scripting

Request to check:count specific entries

Hi all I have an input file which contains so many entries like this: And, I want to count hw many among ASN in one column are converted to LYS in third coulmns. which means output shuld contain only "ASN number LYS" Kindly let me know wny programm for this My input is ASN 217 LYS... (2 Replies)
Discussion started by: manigrover
2 Replies

7. Shell Programming and Scripting

Request to check: find common and write before it

Hi all, I have 2 big files with such kind of inputs File I File II I want the output file shuld contain Please let me knw scripting regarind this (1 Reply)
Discussion started by: manigrover
1 Replies

8. Shell Programming and Scripting

Extract certain entries from big file:Request to check

Hi all I have a big file which I have attached here. And, I have to fetch certain entries and arrange in 5 columns Name Drug DAP ID disease approved or notIn the attached file data is arranged with tab separated columns in this way: and other data is... (2 Replies)
Discussion started by: manigrover
2 Replies

9. Shell Programming and Scripting

common entries of first column in 2 or 3 files:kindly check

Hi all, I have 3 files with such data first files second file third file I have to find common entries of first column in two ways 1) between 2 files (2 Replies)
Discussion started by: manigrover
2 Replies

10. Shell Programming and Scripting

Request to check:Fetch certain entries

Hi all. Kindly check it it's urgent!! I have one big file from which which I have to fetch certain data I have attached a small part of this file. from the attached file, I have to fetch and arrange data in 3 columns 1 Generic name 2. Brand names 3. Drug... (10 Replies)
Discussion started by: manigrover
10 Replies
MM-COMMON-PREPARE(1)						  mm-common 0.9.5					      MM-COMMON-PREPARE(1)

NAME
mm-common-prepare - Prepare a C++ binding module to use mm-common SYNOPSIS
mm-common-prepare [OPTION]... [SOURCE-DIR] DESCRIPTION
Run mm-common-prepare to install the mm-common build support files into the source tree of a C++ binding module. The exact location where these files will be installed can be influenced through special macros in the configure.ac file. AC_CONFIG_AUX_DIR([AUX-DIR]) The Automake include files are placed into the AUX-DIR subdirectory of the top-level source directory. If AC_CONFIG_AUX_DIR is not specified, the files are placed at the top-level of the module's source tree. MM_CONFIG_DOCTOOL_DIR([DOCTOOL-DIR]) If the MM_CONFIG_DOCTOOL_DIR macro is called with an explicit DOCTOOL-DIR argument, the common utilities required for generating and installing the reference documentation of a C++ binding module will be installed into the named subdirectory. If MM_CONFIG_DOC- TOOL_DIR is not used or does not specify a DOCTOOL-DIR argument, mm-common-prepare will not install the documentation utility files into the module's source tree. Instead, it is assumed that the module depends on glibmm and can use the installed documentation utilities that come with it. If no SOURCE-DIR argument has been specified on the command line, the current working directory will be used. OPTIONS
-c, --copy copy files instead of creating symbolic links to them -f, --force forcefully replace existing files or symbolic links --help display a help message and exit --version show version information and exit EXIT STATUS
The exit status is 0 if OK, or 1 if an error occurred. FILES
The build support files currently installed by mm-common-prepare are listed below. Automake include files installed into AUX-DIR: compile-binding.am dist-changelog.am doc-reference.am generate-binding.am Documentation utilities installed into DOCTOOL-DIR: doc-install.pl doc-postprocess.pl doxygen.css tagfile-to-devhelp2.xsl SEE ALSO
autoreconf(1) /usr/share/doc/mm-common/README /usr/share/doc/mm-common/skeletonmm.tar.gz GNOME
2009-12-29 MM-COMMON-PREPARE(1)
All times are GMT -4. The time now is 01:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy