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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
apt-show-source
APT-SHOW-SOURCE(1) User Contributed Perl Documentation APT-SHOW-SOURCE(1)
NAME
apt-show-source - Lists source-packages.
DESCRIPTION
This program parses the APT lists for source packages and the dpkg status file and then lists every package with a higher version number
than the one installed.
It may prove very useful if the "deb" entries in your APT sources.list point to stable and the "deb-src" entries point to unstable. With
this program you are easily able to find out if there is a newer version of eg. Program XXXX in unstable.
COMMAND LINE PARAMETERS
Optional command line parameters are the DPKG Status file to use, the path to APT's list files and a package name. There are also options
to display: all source-packages, verbose messages, version-only and command-line help.
OPTIONS
-stf FILE, --status-file=FILE
Reads installed packages from FILE instead of /var/lib/dpkg/status.
-ld DIRECTORY, --list-dir=DIRECTORY
DIRECTORY specifies the path to APT's list files, defaults to /var/lib/apt/lists/.
-p PACKAGE, --package=PACKAGE
Prints out the installed-package/source-package version Information for PACKAGE.
--version-only
Prints version only if used together with --package.
-a, --all
Prints out all available source-packages with version.
-v, --verbose
Prints out verbose messages.
-h, --help
Prints out command-line help.
AUTHOR
Dennis Schoen, dennis@debian.org
SEE ALSO
apt(1), dpkg(1)
perl v5.8.1 2003-10-12 APT-SHOW-SOURCE(1)