Can anyone show me how to list the below numbers in decending order?
I have a code to find out whats the largest number though but can it be modified to in-corporate in function ?
Thanks in advance
Hello,
I have a list of all order number like below:
maryu01001
johnm00003
peter02234
catmy66751
For the above, all number must in 5 digits and I need to add one into the number and output a new list like below:
maryu01002
johnm00004
peter02235
catmy66752
How can write a... (20 Replies)
hello,
how can I filter and get the latest order number (last five digits) below:
input file:
johnmm00001
maryyy00121
johnm100222
johnmm00003
maryyy00122
output file:
johnmm00003
maryyy00122
johnm100222 (6 Replies)
Could somebody solve this problem?
I want to create a list from the last ten modificated files and the end of rows I would like to take an ordinal number in fix position. My solution:
ls -lt | grep ´^-´ | sed 10q | awk ´{printf "%s\t%2i\n", %0, NR}´
But so the ordinal number isn't in a... (1 Reply)
Hello,
I am trying to print line number/order using this command
awk '{print $0, FNR}' myfilename
11006 A41 1888
11006 A41 1888
11006 A41 1888
11006 A41 ... (2 Replies)
Hi,
I have a program written in awk and I want to extend it to do another task.
My program is a list of CVS log reports of a repository. For each file, I have some fields. One of the fields is the comment field. I want to know how I can check if a comment (which is a free text field)... (8 Replies)
hi all
i want to remove some descending order number
example :
1 100 200 135.00 Gk_wirs 1
1 100 200 136.00 Gk_wirs 50
1 110 210 138.00 Gk_wirs 60
1 100 200 136.00 Gk_wirs 57 ----> how to remove... (6 Replies)
Hi all,
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Any ideas?
Thanks! (5 Replies)
Hi,
I need to list files in ascending order. Filenames are in format inpTDT_1, inpTDT_2, inpTDT_3 and so on.
I want to list them in the ascending order based on the digit after underscore and send the output to a file.
Please help (5 Replies)
Discussion started by: Neelkanth
5 Replies
LEARN ABOUT DEBIAN
vzlist
vzlist(8) Containers vzlist(8)NAME
vzlist - show various information about containers
SYNOPSIS
vzlist [-a | -S] [-n] [-H] [-o name[,name...] | -1] [-s [-]name] [-h pattern] [-N pattern] [-d pattern] [CTID [CTID ...]]
vzlist -L | --list
vzlist --help
DESCRIPTION
This utility is used for listing containers and their parameters. By default only running containers are listed. If one or more CTIDs are
specified, only specified containers are displayed.
For the fields that can have many values (e.g. ip), all the values are displayed only for the last (i.e. leftmost) column; otherwise, only
the first value is shown.
OPTIONS -a, --all
List all containers.
-S, --stopped
List only not running containers (including the ones with status shown as mounted or suspended).
-n, --name
Display container names instead of hostnames.
-H, --no-header
Suppress displaying the header row.
-o, --output field[,field...]
Display only the specified fields (see Standard fields subsection below).
-1 Synonym for -H -octid, i.e. only show container IDs, one per line.
-s, --sort [-]field
Sort by the value of field (possible arguments are the same as for -o). The - before the field name means sorting in the reverse
order.
Output filters
List of CTs can be further filtered using the following options. For patterns one can use the same wildcards as in shell (i.e. *, ?, and
[]). Note: to avoid expansion of wildcards by the shell, one have to escape the pattern by either putting it into single quotes (like
'a*a') or by adding a backslash before the wildcard character (like a*a).
-h, --hostname pattern
List only containers whose hostnames matches the pattern.
-N, --name_filter pattern
List only containers whose names matches the pattern.
-d, --description pattern
List only containers with descriptions matching the pattern.
Possible fields
-L, --list
list all available format specifiers that can be used for both output (-o, --output) and the sorting order (-s, --sort).
For the user beancounter fields, if suffix is not specified, current usage (a.k.a. "held") value is show. One can also use the fol-
lowing suffixes:
.m maxheld
.b barrier
.l limit
.f fail counter
For the disk quota fields, if suffix is not specified, current usage is shown. One can also use the following suffixes:
.s soft limit
.h hard limit
EXAMPLES
vzlist -o ctid,kmemsize,kmemsize.l -s kmemsize
Show CTIDs, kmemsize usage, and kmemsize limit for all running containers, sorted by the kmemsize usage.
EXIT STATUS
Returns 0 upon success.
COPYRIGHT
Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.
OpenVZ 4 Jul 2011 vzlist(8)