Sponsored Content
Top Forums Shell Programming and Scripting Compare two files containing package names and version number Post 302906640 by asya18 on Sunday 22nd of June 2014 08:11:06 AM
Old 06-22-2014
Compare two files containing package names and version number

I have 2 files each containing a list of same fedora packages but with different version number. I want to compare the 2 files and remove the lines containing a newer or older version number
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

total number of files which have "aaa" in files whose names are File*_bbb*

I am getting the list of all the files which have "aaa" from files whose name is File*_bbb*. grep -l "aaa" File*_bbb* But I want to count the number of files. That is I want the total number of files which have "aaa" in files File*_bbb* If I run the following for getting number of... (1 Reply)
Discussion started by: sudheshnaiyer
1 Replies

2. Shell Programming and Scripting

Finding files with names that have a real number greater then difined.

I am trying to find all files in a directory whose name has a real number larger then the number I am looking for. For example: . |-- delta.1.5.sql |-- delta.2.1.sql |-- delta.2.2.sql |-- delta.2.3.sql |-- delta.2.4.sql `-- delta.2.5.sql I know my database is at 2.2 so I want an... (2 Replies)
Discussion started by: harmonwood
2 Replies

3. Shell Programming and Scripting

Script to Compare a large number of files.

I have a large Filesystem on an AIX server and another one on a Red Hat box. I have syncd the two filesystems using rsysnc. What Im looking for is a script that would compare to the two filesystems to make sure the bits match up and the number of files match up. its around 2.8 million... (5 Replies)
Discussion started by: zippdawg2001
5 Replies

4. UNIX for Dummies Questions & Answers

Substract a certain number to the names of several files

We have a list of files (raw and jpeg types) with 2 different extensions (rw2 and jpg). When there is both the raw and jpeg files, their file numbers must be the same (215 and 215, 218 and 218). Sometimes there is only the jpeg file (216,217). bla_215.rw2 bla_215.jpg bla_216.jpg bla_217.jpg... (9 Replies)
Discussion started by: Epictete
9 Replies

5. Shell Programming and Scripting

Compare list [ names and size files ]

Hello, I've downloaded a huge amont of files I've got a list of files from a remote server. -rw-r--r-- 1 str661 strem 453465260 Dec 16 15:54 SATRYS2V1_20021218_temp_bias.nc -rw-r--r-- 1 str661 strem 17669468 Dec 16 18:01 SATRYS2V1_20021225_hdyn_bias.nc -rw-r--r-- 1... (9 Replies)
Discussion started by: Aswex
9 Replies

6. UNIX for Dummies Questions & Answers

how to compare names of files?

hi, can somebody tell me how to compare names of files? the situation is I have 2 files file1 and file2 and I want to figure out which file has the biggest ending, in this case file2 is. thank you (3 Replies)
Discussion started by: s3270226
3 Replies

7. Shell Programming and Scripting

Check for particular files and compare the file names

Hi, Below are the 2 files in directory /tmp: masterCSF242323.img indexCSF242323.img 1) I want to compare if both the number (242323) are same in both the files. If they are same print - Files matching, else print files do not match. 2) Also if only index file is present in that... (7 Replies)
Discussion started by: apatil65
7 Replies

8. Shell Programming and Scripting

Compare two files, then outputs line number

I have two files, "ranked.txt" and "sorted.txt". Sorted.txt is a smaller subset from ranked.txt that is sorted in alpha order. However ranked.txt preserves the ranking of words I would like to keep. How do I check the rank of every word in sorted.txt when matched to the original ranked.txt? I... (8 Replies)
Discussion started by: pxalpine
8 Replies

9. Shell Programming and Scripting

Compare two files and get only missing names

I need to compare two files (oldfile1 & newfile). Need to ignore the values which are present in both files. At the same time, i need to get only records in new file. Tried using Join -v1 -v2 oldfile1 newfile (suspect it has not worked as expected). could anyone of you please help me here. (5 Replies)
Discussion started by: Selva_2507
5 Replies

10. Shell Programming and Scripting

Compare files with different names in different directories

Hi, I have a requirement to compare files in different directories with different names. The files have a datestamp in their name (It might not be a sequential datetimestamp). This is for Redhat Linux. I have more than 5 directories and more than 10 file in each directory to be compared. ... (4 Replies)
Discussion started by: GosarJunk
4 Replies
ALIEN(1p)						User Contributed Perl Documentation						 ALIEN(1p)

NAME
alien - Convert or install an alien binary package SYNOPSIS
alien [--to-deb] [--to-rpm] [--to-tgz] [--to-slp] [options] file [...] DESCRIPTION
alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. If you want to use a package from another linux distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it. It also supports LSB packages. WARNING
alien should not be used to replace important system packages, like init, libc, or other things that are essential for the functioning of your system. Many of these packages are set up differently by the different distributions, and packages from the different distributions cannot be used interchangeably. In general, if you can't remove a package without breaking your system, don't try to replace it with an alien version. PACKAGE FORMAT NOTES
rpm For converting to and from rpm format the Red Hat Package Manager must be installed. lsb Unlike the other package formats, alien can handle the depenendencies of lsb packages if the destination package format supports dependencies. Note that this means that the package generated from a lsb package will depend on a package named "lsb" -- your distribution should provide a package by that name, if it is lsb compliant. The scripts in the lsb package will be converted by default as well. To generate lsb packages, the Red Hat Package Manager must be installed, and alien will use by preference a program named lsb-rpm, if it exists. No guarantees are made that the generated lsb packages will be fully LSB compliant, and it's rather unlikely they will unless you build them in the lsbdev environment. Note that unlike other package formats, converting an LSB package to another format will not cause its minor version number to be changed. deb For converting to (but not from) deb format, the gcc, make, debhelper, dpkg-dev, and dpkg packages must be installed. tgz Note that when converting from the tgz format, alien will simply generate an output package that has the same files in it as are in the tgz file. This only works well if the tgz file has precompiled binaries in it in a standard linux directory tree. Do NOT run alien on tar files with source code in them, unless you want this source code to be installed in your root directory when you install the package! When using alien to convert a tgz package, all files in /etc in are assumed to be configuration files. pkg To manipulate packages in the Solaris pkg format (which is really the SV datastream package format), you will need the Solaris pkginfo and pkgtrans tools. OPTIONS
alien will convert all the files you pass into it into all the output types you specify. If no output type is specified, it defaults to converting to deb format. file [...] The list of package files to convert. -d, --to-deb Make debian packages. This is the default. -r, --to-rpm Make rpm packages. -t, --to-tgz Make tgz packages. --to-slp Make slp packages. -p, --to-pkg Make Solaris pkg packages. -i, --install Automatically install each generated package, and remove the package file after it has been installed. -g, --generate Generate a temporary directory suitable for building a package from, but do not actually create the package. This is useful if you want to move files around in the package before building it. The package can be built from this temporary directory by running "debian/rules binary", if you were creating a Debian package, or by running "rpmbuild -bb <packagename>.spec" if you were creating a Red Hat package. -s, --single Like -g, but do not generate the packagename.orig directory. This is only useful when you are very low on disk space and are generating a debian package. -c, --scripts Try to convert the scripts that are meant to be run when the package is installed and removed. Use this with caution, because these scripts might be designed to work on a system unlike your own, and could cause problems. It is recommended that you examine the scripts by hand and check to see what they do before using this option. This is enabled by default when converting from lsb packages. --patch=patch Specify the patch to be used instead of automatically looking the patch up in /var/lib/alien. This has no effect unless a debian package is being built. --anypatch Be less strict about which patch file is used, perhaps attempting to use a patch file for an older verson of the package. This is not guaranteed to always work; older patches may not necessarily work with newer packages. --nopatch Do not use any patch files. --description=desc Specifiy a description for the package. This only has an effect when converting from the tgz package format, which lacks descriptions. --version=version Specifiy a version for the package. This only has an effect when converting from the tgz package format, which may lack version information. Note that without an argument, this displays the version of alien instead. -T, --test Test the generated packages. Currently this is only supported for debian packages, which, if lintian is installed, will be tested with lintian and lintian's output displayed. -k, --keep-version By default, alien adds one to the minor version number of each package it converts. If this option is given, alien will not do this. --bump=number Instead of incrementing the version number of the converted package by 1, increment it by the given number. --fixperms Sanitize all file owners and permissions when building a deb. This may be useful if the original package is a mess. On the other hand, it may break some things to mess with their permissions and owners to the degree this does, so it defaults to off. This can only be used when converting to debian packages. -v, --verbose Be verbose: Display each command alien runs in the process of converting a package. --veryverbose Be verbose as with --verbose, but also display the output of each command run. Some commands may generate a lot of output. -h, --help Display a short usage summary. -V, --version Display the version of alien. EXAMPLES
Here are some examples of the use of alien: alien --to-deb package.rpm Convert the package.rpm into a package.deb alien --to-rpm package.deb Convert the package.deb into a package.rpm alien -i package.rpm Convert the package.rpm into a package.deb (converting to a .deb package is default, so you need not specify --to-deb), and install the generated package. alien --to-deb --to-rpm --to-tgz --to-slp foo.deb bar.rpm baz.tgz Creates 9 new packages. When it is done, foo bar and baz are available in all 4 package formats. ENVIRONMENT
alien recognizes the following environment variables: RPMBUILDOPTS Options to pass to rpm when it is building a package. RPMINSTALLOPT Options to pass to rpm when it is installing a package. EMAIL If set, alien assumes this is your email address. Email addresses are included in generated debian packages. AUTHOR
alien was written by Christoph Lameter, <clameter@debian.org>. deb to rpm conversion code was taken from the martian program by Randolph Chung, <tausq@debian.org>. The Solaris pkg code was written by Mark A. Hershberger <mah@everybody.org>. alien has been extensively rewritten (3 times) and is now maintained by Joey Hess, <joeyh@debian.org>. COPYRIGHT
alien may be copied and modified under the terms of the GNU General Public License. perl v5.12.3 2011-06-20 ALIEN(1p)
All times are GMT -4. The time now is 09:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy