Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unix shell script for finding top ten files of maximum size Post 302166987 by maheshwin on Wednesday 13th of February 2008 07:19:12 AM
Old 02-13-2008
ls -l will give the output of the total directory links , so dont trust it, du is the exact form to get the info, above commands are perfectly true
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

top ten utilities in shell scripting?

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

finding duplicate files by size and finding pattern matching and its count

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

Maximum size of a file in unix

What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies

4. Shell Programming and Scripting

Display top ten directories by size

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

shell script to auto process ten random files and generate logs

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

Unix shell script to query linux top consuming processes

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

Help with shell script - not finding files

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
TACHK(1p)						User Contributed Perl Documentation						 TACHK(1p)

NAME
tachk - Check the validity of the trust anchors in a named.conf file SYNOPSIS
tachk [options] <named.conf> DESCRIPTION
tachk checks the validity of the trust anchors in the specified named.conf file. The output given depends on the options selected. Note: This script may be removed in future releases. OPTIONS
tachk takes two types of options: record-attribute options and output-style options. These option sets are detailed below. Record-Attribute Options These options define which trust anchor records will be displayed. -valid This option displays the valid trust anchors in a named.conf file. -invalid This option displays the invalid trust anchors in a named.conf file. Output-Format Options These options define how the trust anchor information will be displayed. Without any of these options, the zone name and key tag will be displayed for each trust anchor. -count The count of matching records will be displayed, but the matching records will not be. -long The long form of output will be given. The zone name and key tag will be displayed for each trust anchor. -terse This option displays only the name of the zones selected by other options. -Version Displays the version information for tachk and the DNSSEC-Tools package. -help Display a usage message. AUTHOR
Wesley Griffin (Current contact for tachk is Wayne Morrison, tewok@tislabs.com.) SEE ALSO
trustman(8) named.conf(5) perl v5.14.2 2012-06-21 TACHK(1p)
All times are GMT -4. The time now is 10:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy