I have a shell script that I am pulling different zip file packages and totaling how many of each type of package is in the directory. I get a bogus total count of one in the middle of my output file (highlighted in RED) and not sure why, also would like to get a grand total of all files but not sure how to do this any ideas?
N PKG.MortgageCreditScoreDisclosure
Total: 16
N PKG.MortgageAppraisalDelivery
Total: 6
N PKG.MortgageRegulationB
Total: 3
N PKG.MortgagePrivacyNotice
Total: 9
N PKG.MortgageDeclination
Total: 1
Total: 1
N PKG.MortgageCommitment
Total: 8
E PKG.Mortgage3DayDisclosure
Total: 7
N PKG.MortgageRateLock
Total: 6
Code:
any help would be greatfully appreciated.
Last edited by Franklin52; 04-16-2010 at 10:11 AM..
Reason: Please use code tags!
Hi All,
I'm developing a FTP script as below:
ftp -v -n <IP_ADDRESS> << EOF
user avery jSqaqUU2
lcd /directory/folder/
ascii
prompt
mget *
bye
EOF
I would like to enhance the script to count the total file downloaded. For example, once the script run i want the message "Total <n>... (1 Reply)
Hi Everybody,
I have the following example file...
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1... (8 Replies)
Hi Friends,
Need help regarding counting the word "friend" in files test1.txt and test2.txt. ( there is no gap/space between word )
cat test1.txt
himynameisrajandiamfriendofrajeshfriend
wouldyouliketobemyfriend.
cat test2.txt
himynameisdostandiamfriendofdostfriend... (2 Replies)
i want to find the no:of occurrences of a word in a file
cat 1.txt
unix script unix script
unix script unix script unix script unix script
unix script unix script unix
unix
script
unix script unix script now i want to find , how many times 'unix' was occurred
please help me
thanks... (6 Replies)
Hi All,
When i give ls -ltr i get 'total 10' like this along with files long listing. is there any option in ls command to remove this line or do we need use head -1 command only.
$ls -ltr
total 45
-rw-r--r-- 1 abc g1 0 Jul 17 07:20 0
-rw-r--r-- 1 abc g1 744 May 9 12:10 a
-rw-r--r--... (1 Reply)
Dear all,
I have a directory consisted of files in .jpg, .jpeg etc..all of them are image
20140411030143_62811159403_92886.jpg 5/11/2014 15:01 197K
20140415024737_62811618747_116460.jpg 4/15/2014 14:47 17K
20140415031003_62811618747_109192.jpg 4/17/2014 15:10 17K... (4 Replies)
Hi all,
I have found another post threads talking about count duplicate lines, but I am interested in obtain the total number of duplicates. For example:
#file.txt
a1
a2
a1
a3
a1
a2
a4
a5
#out
3 (lines are duplicates)
Thank you! (12 Replies)
We recently moved our netapp disks onto new infrastructure by attaching the new controllers to our fibre switch and netapp migrating the disks. Disks kept the same address. We originally had 4 paths, but after attaching the new controllers we had 8. Now I want to remove the old paths. But can't. ... (5 Replies)
Discussion started by: garydeena
5 Replies
LEARN ABOUT DEBIAN
aptpkg::version
AptPkg::Version(3pm) User Contributed Perl Documentation AptPkg::Version(3pm)NAME
AptPkg::Version - APT package versioning class
SYNOPSIS
use AptPkg::Version;
DESCRIPTION
The AptPkg::Version module provides an interface to APT's package version handling.
AptPkg::Version
The AptPkg::Version package implements the APT pkgVersioningSystem class.
An instance of the AptPkg::Version class may be fetched using the "versioning" method from an AptPkg::System object.
The following methods are implemented:
label
Return the description of the versioning system, for example:
Standard .deb
for Debian systems.
compare(A, B)
Compare package version A with B, returning a negative value if A is an earlier version than B, zero if the same or a positive value if
A is later.
rel_compare(A, B)
Compare distribution release numbers.
check_dep(PKG, OP, DEP)
Check that the package version PKG satisfies the relation OP to the dependency version DEP.
The relation OP is specified in the Debian syntax regardless of the versioning system:
<< strictly earlier
<= earlier or equal
= exactly equal
>= later or equal
>> strictly later
upstream(VER)
Return the upstream component of the given version string.
SEE ALSO AptPkg::Config(3pm), AptPkg::System(3pm), AptPkg(3pm).
AUTHOR
Brendan O'Dea <bod@debian.org>
perl v5.14.2 2012-03-16 AptPkg::Version(3pm)