02-13-2008
Thanks it is listing , But the size that shows when i run ls -l command and the size that is showing for this command is different can you please let me know the reason
example :
$ ll /pfta02/10.001
-rw-rw-rw- 1 pnt pf 87843360 Feb 6 02:21 /pfta02/10.001
$ find /pfta03 -type f -exec du {} \; |sort -rn | head -1
171572 /pfta02/10.001
why the size listing is as 171572 instead of 87843360 ... IS any convertion happening ?..
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Let's get some feedback about the top ten ute's you guys use in writing your scripts - I mean yeah it depends on the job and what you're trying to accomplish, but there ARE those commands (sed, grep, awk, cut, etc.) that most will use time and again...
...so, what do you use? (3 Replies)
Discussion started by: diego
3 Replies
2. Shell Programming and Scripting
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
3. UNIX for Dummies Questions & Answers
What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies
4. Shell Programming and Scripting
Hi,
I am new to Unix.
I want to display top 10 folders by size.
I tried with
du -ksl * | sort -nr | head -10
command .But I am getting the following error
-bash: /usr/bin/du: Argument list too long
Can some one help me.
Thanks. (5 Replies)
Discussion started by: Satyak
5 Replies
5. Shell Programming and Scripting
Hello member's
I'm learning to script in the ksh environment on a Solaris Box.
I have 10 files in a directory that I need to pass, as input to a batch job one by one. lets say, the files are named as follows:
abcd.txt ; efgh.bat ; wxyz.temp etc. (random filenames with varied extensions ).... (1 Reply)
Discussion started by: novice82
1 Replies
6. Shell Programming and Scripting
Hi All,
O/S: Linux 86x64 Red Hat
I have a sql script that queries top consuming processes of Linux using TOP commnd.
Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script.
Could anyone please let me know how to achieve this.
... (2 Replies)
Discussion started by: a1_win
2 Replies
7. Shell Programming and Scripting
Hello,
I have a shell script like the one below but cannot get it working:
#!/bin/bash
#$ -cwd
CHR=$2
# directories
ROOT_DIR=./
RESULTS_DIR=${ROOT_DIR}results/
# executable
SHAPEIT_EXEC=${ROOT_DIR}shapeit.v2.r727.linux.x64/shapeit.v2.r727.linux.x64
# parameters
THREAT=5... (1 Reply)
Discussion started by: wmelroy
1 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::pkgversion
Dist::Zilla::Plugin::PkgVersion(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::PkgVersion(3pm)
NAME
Dist::Zilla::Plugin::PkgVersion - add a $VERSION to your packages
VERSION
version 4.300020
SYNOPSIS
in dist.ini
[PkgVersion]
DESCRIPTION
This plugin will add lines like the following to each package in each Perl module or program (more or less) within the distribution:
{
$MyModule::VERSION = 0.001;
}
...where 0.001 is the version of the dist, and MyModule is the name of the package being given a version. (In other words, it always uses
fully-qualified names to assign versions.)
It will skip any package declaration that includes a newline between the "package" keyword and the package name, like:
package
Foo::Bar;
This sort of declaration is also ignored by the CPAN toolchain, and is typically used when doing monkey patching or other tricky things.
SEE ALSO
Core Dist::Zilla plugins: PodVersion, AutoVersion, NextRelease.
Other Dist::Zilla plugins: OurPkgVersion inserts version numbers using "our $VERSION = '...';" and without changing line numbers
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::PkgVersion(3pm)