awk -F ";" '{if($10>80 && NR>1) print $0 }' txt_file_*
I am using this command to print the lines which has 10th field more then 80 and leaving the first line of the file which is the header.
But this is not working , the first line is is coming as output , please correct me .
thanks (2 Replies)
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Hi,
Below is the data in a tab limited file
Here ACCENT is just a heading and the line starting with Pcode has the column headers, and there is a 2 lines space between the file header and column header.
I want to print $2, that is Dealer Name
I used the below code
nawk... (1 Reply)
Dear All,
Good Day. I would like to solve the following issue and got some strange results, if anyone could help me in this regard, you are most welcome.
Here is the problem:
I have a file like
Header Value1 Value2 Value3 Value4 Value5 Value6 ... Value9
12.144 6 5 ... (8 Replies)
i have a input of csv file as below but the sequence of column get changed.
I,e it is not necessary that name comes first then age and rest all, it may vary.
name,age,marks,roll,section
kevin,25,80,456,A
Satch,23,56,789,B
Meena,24,78,H245,C
So i want to print that column entires which... (12 Replies)
In the awk below I am trying to print only the header lines starting with # or ## and the lines that $7 is PASS and AF= is less than 5%. The awk does execute but returns an empty file and I am not sure what I am doing wrong. Thank you.
file
... (0 Replies)
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT OSF1
vdf
vdf(8) System Manager's Manual vdf(8)NAME
vdf - Display disk information for AdvFS domains and filesets
SYNOPSIS
/sbin/advfs/vdf [-k] [-l] domain | domain#fileset
OPTIONS
Display disk blocks as 1024-byte blocks instead of the default of 512-byte blocks. When the -l option is specified, the default informa-
tion for both the domain and filesets is reformatted to show the relationships between them. For example, any domain metadata displayed is
the total metadata shared by filesets in the domain.
OPERANDS
The full path name of an AdvFS file domain.
When a domain argument is specified, the default display contains information about the number of disk blocks allocated to the
domain, the number of disk blocks in use by the domain, and the number of disk blocks that are available to the domain. The name of
an AdvFS fileset in an AdvFS file domain.
When a domain#fileset argument is specified, the default display contains information about the number of disk blocks allocated to
the fileset, the number of disk blocks in use by the fileset, and the number of disk blocks that are available to the fileset. This
information is in the same format as that displayed by the df command.
DESCRIPTION
The vdf utility is a script that reformats output from the showfdmn, showfsets, shfragbf, and df utilities in order to display information
about the disk usage of AdvFS file domains and filesets. In addition, the utility computes and displays the sizes of metadata files in a
domain or fileset.
NOTES
The disk space used by clone filesets is not calculated.
If clone filesets are present in the specified domain, the utility displays the following warning message: Clone fileset(s) in this domain;
totals may not be accurate
RESTRICTIONS
You must be the root user to use this command.
The command cannot be used on filesets that are NFS mounted.
All filesets in a domain must be mounted in order to calculate the disk usage of the domain.
EXIT STATUS
The utility returns a value of 0 (zero) on successful completion. It returns a value of 1 on failure.
EXAMPLES
The following example shows the summary information for a fileset named testfs in a domain named test. The output is the same as for the
df command: # vdf test#testfs Filesystem 512-blocks Used Available Capacity Mounted on test#testfs 60000 20800 39200
35% /mnt The following example shows the summary information for a domain named usr_domain where the number of blocks used for meta-
data and data equal 89% of the domain's capacity: # vdf usr_domain Domain 512-blocks Metadata Used Available Capacity usr_domain
65536 11219 47549 6768 89% The following example shows a detailed display of the domain that contains the fileset
test#testfs. There are two filesets in the domain; each has a quota limit of 60,000 blocks: # vdf -l test#testfs Domain 512-blocks
Metadata Used Available Capacity test 266240 5824 29128 231288 13%
Fileset QuotaLimit Used Available Capacity testfs 60000 20800 39200 35% testfs2 60000
8328 51672 14% The following example shows a detailed display of a fileset that is the only fileset in the domain and that
the fileset has a quota limit that is greater than the domain can hold: # vdf -l test#testfs Domain 512-blocks Metadata Used Avail-
able Capacity test 266240 5824 29128 231288 13%
Fileset QuotaLimit Used Available Capacity testfs 300000 20800 231288 8%
FILES SEE ALSO
Commands: df(1), showfdmn(8), showfsets(8), shfragbf(8)
Files: advfs(4)vdf(8)