Sponsored Content
Full Discussion: How to sort df -h out put :
Operating Systems Solaris How to sort df -h out put : Post 302606444 by birei on Sunday 11th of March 2012 01:26:55 PM
Old 03-11-2012
Hi new2uniks,

What kind of sort is that?

Shouldn't be /archive ordered before than /d01? I can't see the point.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl find::file can I sort the out put

Perl file::find can I sort the out put I am using file::find in my script but how I wish to process each file found in date order. Can I sort this module? eg part of current script is.... use File::Find; # Recursively find all files and directories in $mqueue_directory find(\&wanted,... (2 Replies)
Discussion started by: Andrek
2 Replies

2. Shell Programming and Scripting

awk -- sort out the out put file

Hi, using awk /sed, I need to sort out the input file. here is the example input file=== Name= shashi | country= india | region = asia | dept= ww Name= jon | region = asia | dept= xx Name=sam | dept= ww Name= anthony | country=england | dept= xx Name= sumo | country= china output... (3 Replies)
Discussion started by: hegdeshashi
3 Replies

3. Shell Programming and Scripting

How to Sort Floating Numbers Using the Sort Command?

Hi to all. I'm trying to sort this with the Unix command sort. user1:12345678:3.5:2.5:8:1:2:3 user2:12345679:4.5:3.5:8:1:3:2 user3:12345687:5.5:2.5:6:1:3:2 user4:12345670:5.5:2.5:5:3:2:1 user5:12345671:2.5:5.5:7:2:3:1 I need to get this: user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies

4. UNIX for Advanced & Expert Users

Script to sort the files and append the extension .sort to the sorted version of the file

Hello all - I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies

5. Shell Programming and Scripting

Is it Possible to sort a list of hexadecimal numbers using "sort" command?

Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
9 Replies

6. Shell Programming and Scripting

Alternate to sort --random-sort

sort --random-sort The full command is path=`find /testdir -maxdepth 1 -mindepth 1 -type d | ***Some sort of sort function*** | head -1` I have a list I want to randomly sort. It works fine in ubuntu but on a 'osx lion' sort dosen't have the --random-sort option. I don't want to... (5 Replies)
Discussion started by: digitalviking
5 Replies

7. Shell Programming and Scripting

Help with sort word and general numeric sort at the same time

Input file: 100%ABC2 3.44E-12 USA A2M%H02579 0E0 UK 100%ABC2 5.34E-8 UK 100%ABC2 3.25E-12 USA A2M%H02579 5E-45 UK Output file: 100%ABC2 3.44E-12 USA 100%ABC2 3.25E-12 USA 100%ABC2 5.34E-8 UK A2M%H02579 0E0 UK A2M%H02579 5E-45 UK Code try: sort -k1,1 -g -k2 -r input.txt... (2 Replies)
Discussion started by: perl_beginner
2 Replies

8. Shell Programming and Scripting

Sort help: How to sort collected 'file list' by date stamp :

Hi Experts, I have a filelist collected from another server , now want to sort the output using date/time stamp filed. - Filed 6, 7,8 are showing the date/time/stamp. Here is the input: #---------------------------------------------------------------------- -rw------- 1 root ... (3 Replies)
Discussion started by: rveri
3 Replies

9. UNIX for Beginners Questions & Answers

Difference of Sort -n -k2 -k3 & Sort -n -k2,3

Hi, Could anyone kindly show me a link or explain the difference between sort -n -k2 -k3 & sort -n -k2,3 Also, if I like to remove the row with repetition at both $2 and $3, Can I safely use sort -u -k2 -k3 Example; 100 20 30 100 20 30 So, both $2 and $3 are same and I... (2 Replies)
Discussion started by: Indra2011
2 Replies

10. Shell Programming and Scripting

Use sort to sort numerical column

How to sort the following output based on lowest to highest BE? The following sort does not work. $ sort -t. -k1,1n -k2,2n bfd.txt BE31.116 0s 0s DOWN DAMP BE31.116 0s 0s DOWN DAMP BE31.117 0s 0s ... (7 Replies)
Discussion started by: sand1234
7 Replies
AMADMIN(8)						      System Manager's Manual							AMADMIN(8)

NAME
amadmin - administrative interface to control Amanda backups SYNOPSIS
amadmin config command [ command options ] DESCRIPTION
Amadmin performs various administrative tasks on the config Amanda configuration. See the amanda(8) man page for more details about Amanda. COMMANDS
Commands that take a hostname [ disks ] parameter pair operate on all disks in the disklist for that hostname if no disks are specified. Where hostname is also marked as being optional, the command operates on all hosts and disks in the disklist. Both hostnames and disk are special expression, see the "HOST & DISK EXPRESSION" section of amanda(8) for a description. version Show the current version and some compile time and runtime parameters. The config parameter must be present but is ignored. force-bump [ hostname [ disks ]* ]+ Force the disks on hostname to bump to a new incremental level during the next Amanda run. force-no-bump [ hostname [ disks ]* ]+ Force the disks on hostname to not bump to a new incremental level during the next Amanda run. unforce-bump [ hostname [ disks ]* ]+ Undo a previous force-bump or force-no-bump command. force [ hostname [ disks ]* ]+ Force the disks on hostname to do a full (level 0) backup during the next Amanda run. unforce [ hostname [ disks ]* ]+ Undo a previous force command. reuse tapelabel [ ... ] The tapes listed will be available for reuse at their point in the tape cycle. no-reuse tapelabel [ ... ] The tapes listed will not be reused when their turn comes up again in the tape cycle. Note that if this causes the number of reus- able tapes to drop below the amanda.conf tapecycle value, Amanda will request new tapes until the count is satisfied again. due [ hostname [ disks ]* ]* Show when the next full dump is due. find [ --sort hkdlb ] [ hostname [ disks ]* ]* Display all backups currently on tape or in the holding disk. The tape label or holding disk filename, file number, and status are displayed. The --sort option changes the sort order using the following flags: h host name k disk name d dump date l backup level b tape label An uppercase letter reverses the sort order for that key. The default sort order is hkdlb. delete [ hostname [ disks ]* ]+ Delete the specified disks on hostname from the Amanda database. Note: if you do not also remove the disk from the disklist file, Amanda will treat it as a new disk during the next run. tape Display the tape(s) Amanda expects to write to during the next run. See also amcheck(8). bumpsize Display the current bump threshold parameters, calculated for all backup levels. balance Display the distribution of full backups throughout the dump schedule. export [ hostname [ disks ]* ]* Convert records from the Amanda database to a text format that may be transmitted to another Amanda machine and imported. import Convert exported records read from standard input to a form Amanda uses and insert them into the database on this machine. disklist [ hostname [ disks ]* ]* Display the disklist information for each of the disks on hostname (or all hosts). Mostly used for debugging. info [ hostname [ disks ]* ]* Display the database record for each of the disks on hostname (or all hosts). Mostly used for debugging. EXAMPLES
Request three specific file systems on machine-a get a full level 0 backup during the next Amanda run. $ amadmin DailySet1 force machine-a / /var /usr amadmin: machine-a:/ is set to a forced level 0 tonight. amadmin: machine-a:/var is set to a forced level 0 tonight. amadmin: machine-a:/usr is set to a forced level 0 tonight. Request all file systems on machine-b get a full level 0 backup during the next Amanda run. $ amadmin DailySet1 force machine-b amadmin: machine-b:/ is set to a forced level 0 tonight. amadmin: machine-b:/var is set to a forced level 0 tonight. amadmin: machine-b:/usr is set to a forced level 0 tonight. amadmin: machine-b:/home is set to a forced level 0 tonight. Undo the previous force request for /home on machine-b. The other file systems will still get a full level 0 backup. $ amadmin DailySet1 unforce machine-b /home amadmin: force command for machine-b:/home cleared. Locate backup images of /var from machine-c. The tape or file column displays either a tape label or a filename depending on whether the image is on tape or is still in the holding disk. If the image is on tape, the file column tells you which file on the tape has the image (file number zero is a tape label). This column shows zero and is not meaningful if the image is still in the holding disk. The status column tells you whether the backup was successful or had some type of error. $ amadmin DailySet1 find machine-c /var date host disk lv tape or file file status 2000-11-09 machine-c /var 0 000110 9 OK 2000-11-08 machine-c /var 2 000109 2 OK 2000-11-07 machine-c /var 2 /amanda/20001107/machine-c._var.2 0 OK 2000-11-06 machine-c /var 2 000107 2 OK 2000-11-05 machine-c /var 2 000106 3 OK 2000-11-04 machine-c /var 2 000105 2 OK 2000-11-03 machine-c /var 2 000104 2 OK 2000-11-02 machine-c /var 2 000103 2 OK 2000-11-01 machine-c /var 1 000102 5 OK 2000-10-31 machine-c /var 1 000101 3 OK Forget about the /workspace disk on machine-d. If you do not also remove the disk from the disklist file, Amanda will treat it as a new disk during the next run. $ amadmin DailySet1 delete machine-d /workspace amadmin: machine-d:/workspace deleted from database. amadmin: NOTE: you'll have to remove these from the disklist yourself. Find the next tape Amanda will use (in this case, 123456). $ amadmin DailySet1 tape The next Amanda run should go onto tape 123456 or a new tape. Show how well full backups are balanced across the dump cycle. The due-date column is the day the backups are due for a full backup. #fs shows the number of filesystems doing full backups that night, and orig KB and out KB show the estimated total size of the backups before and after any compression, respectively. The balance column shows how far off that night's backups are from the average size (shown at the bottom of the balance column). Amanda tries to keep the backups within +/- 5%, but since the amount of data on each filesystem is always changing, and Amanda will never delay backups just to rebalance the schedule, it is common for the schedule to fluctuate by larger percentages. In particular, in the case of a tape or backup failure, a bump will occur the following night, which will not be smoothed out until the next pass through the schedule. The last line also shows an estimate of how many Amanda runs will be made between full backups for a file system. In the example, a file system will probably have a full backup done every eight times Amanda is run (e.g. every eight days). $ amadmin DailySet1 balance due-date #fs orig KB out KB balance ------------------------------------------- 11/10 Mon 21 930389 768753 +5.1% 11/11 Tue 29 1236272 733211 +0.2% 11/12 Wed 31 1552381 735796 +0.6% 11/13 Thu 23 1368447 684552 -6.4% 11/14 Fri 32 1065603 758155 +3.6% 11/15 Sat 14 1300535 738430 +0.9% 11/16 Sun 31 1362696 740365 +1.2% 11/17 Mon 30 1427936 773397 +5.7% 11/18 Tue 11 1059191 721786 -1.3% 11/19 Wed 19 1108737 661867 -9.5% ------------------------------------------- TOTAL 241 12412187 7316312 731631 (estimated 8 runs per dumpcycle) FILES
/etc/amanda/config/amanda.conf AUTHOR
James da Silva <jds@cs.umd.edu> University of Maryland, College Park SEE ALSO
amanda(8), amcheck(8), amdump(8), amrestore(8) AMADMIN(8)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy