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)
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)
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)
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)
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)
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)
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)
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)
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)
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 REDHAT
chdist
CHDIST(1)CHDIST(1)NAME
chdist - script to easily play with several distributions
SYNOPSIS
chdist [options] [command] [command parameters]
DESCRIPTION
chdist is a rewrite of what used to be known as 'MultiDistroTools' (or mdt). Its use is to create 'APT trees' for several distributions,
making it easy to query the status of packages in other distribution without using chroots, for instance.
OPTIONS -h, --help
Provide a usage message.
-d, --data-dir DIR
Choose data directory (default: $HOME/.chdist/).
-a, --arch ARCH
Choose architecture (default: `dpkg --print-architecture`).
--version
Display version information.
COMMANDS
create DIST [URL RELEASE SECTIONS]
Prepare a new tree named DIST
apt-get DIST <update|source|...>
Run apt-get inside DIST
apt-cache DIST <show|showsrc|...>
Run apt-cache inside DIST
apt-rdepends DIST [...]
Run apt-rdepends inside DIST
src2bin DIST SRCPKG
List binary packages for SRCPKG in DIST
bin2src DIST BINPKG
List source package for BINPKG in DIST
compare-packages DIST1 DIST2 [DIST3, ...]
compare-bin-packages DIST1 DIST2 [DIST3, ...]
List versions of packages in several DISTributions
compare-versions DIST1 DIST2
compare-bin-versions DIST1 DIST2
Same as compare-packages/compare-bin-packages, but also runs dpkg --compare-versions and display where the package is newer.
compare-src-bin-packages DIST
Compare sources and binaries for DIST
compare-src-bin-versions DIST
Same as compare-src-bin-packages, but also run dpkg --compare-versions and display where the package is newer
grep-dctrl-packages DIST [...]
Run grep-dctrl on *_Packages inside DIST
grep-dctrl-sources DIST [...]
Run grep-dctrl on *_Sources inside DIST
list
List available DISTs
COPYRIGHT
This program is copyright 2007 by Lucas Nussbaum and Luk Claes. This program comes with ABSOLUTELY NO WARRANTY.
It is licensed under the terms of the GPL, either version 2 of the License, or (at your option) any later version.
Debian Utilities 2013-12-23 CHDIST(1)