Hi all,
I have a pattern like this in a file:
123 4 56 789
234 5 67 789
121 3 56 789
222 4 65 789
321 6 90 100
478 8 40 789
243 7 80 789
How can I count the number of occurences of '789' (4th column) in this set...?
Thanks for all your help!
K (7 Replies)
I need to count the number of occurrences of a pattern, say 'key', between each occurrence of a different pattern, say 'lu'.
Here's a portion of the text I'm trying to parse:
lu S1234L_149_m1_vg.6, part-att 1, vdp-att 1 p-reserver IID 0xdb
registrations:
key 4156 4353 0000 0000
... (3 Replies)
Gurus,
Need little guidance.
I have A.txt and B.txt file. B.txt file contains Unique strings.
Sample content of B.txt file for which i cut the fourth column uniquely and output directed to B.txt file
And A.txt file contains the above string as a fourth column which is last column.
So A.txt... (7 Replies)
Hi!
In our current directory there are around 35000 files.
Out of these a few thousands(around 20000) start with, "testfiles9842323879838".
I want to count the number of files that have filenames starting with the above pattern. Please help me with the command i could use.
Thank... (7 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
How to find count total number of pattern in a file …
File contains : a.txt
-------------
aaa bbb nnn
ccc aaa bbb
aaa ddd aaa
aaa aaa aaa
grep -c aaa a.txt
Op: 4 ( But my requirement is should count the total no of patterns as 7 ) (4 Replies)
I have a directory of files, each with a variable (though small) number of lines. I would like to go through each line in each file, and print the:
-file name
-line number
-number of matches to the pattern /comp/ for each line.
Two example files:
cat... (4 Replies)
Guys -
Need your ideas on a section of code to finish something up. To make a long story short, I'm parsing a print output file that goes to pre-printed forms. I'm intercepting it, parsing it, formatting it, cutting it up into individual pages, grabbing the text I want in zones, building an... (3 Replies)
Guys
I am trying grep to read from pattern file and count occurances of each word.
input is
firstplace
secondplace
secondpot
patternfile is
place
first
second
i want the following.
1-count number of times keywords in patternfile occurs in begining of each line in input file.
so... (12 Replies)
Discussion started by: ahfze
12 Replies
LEARN ABOUT DEBIAN
ql-dynamic-tgt-lun-disc
ql-dynamic-tgt-disc(8) System Administration ql-dynamic-tgt-disc(8)NAME
ql-dynamic-tgt-lun-disc - Scans for newly added LUNs.
SYNOPSIS
ql-dynamic-tgt-lun-disc [OPTIONS]
DESCRIPTION
Dynamic TGT-LUN Discovery Utility
This utility scans for newly added LUNs. After adding new LUNs, you do not need to unload, then load the QLogic FC driver or reboot the
system
To begin scanning the LUNs issue following command:
# /usr/sbin/ql-dynamic-tgt-lun-disc
-al, --allow-lip
LIP is not issued by default, even if it is required for scanning new LUNs Setting this option, allows the utility to issue LIP.
-cl, --current-luns
Displays LUNS currently present
-e, --extended-scan
Use this option as "-e | --extended-scan". to rescan LUNs. This will identify any change in attributes of existing LUNs. This option
can be used in combination of scan/refresh or max luns
-h, --help, ?
Prints this help message
-i, --interactive
Use this option to use the menu driven program
-is, --iscsi
Use this option to operate on ISCSI HBAs, this option can be used in combination of any other supported option.
-m, --max-lun
To set the maximum LUNs to be scanned
-p, --proc
Use PROC file system for LUN scanning
-r, --refresh
To refresh, that is remove LUNs that are lost use the options "-r|--refresh". This will remove the LUNs which no more exist.
-s, --scan [ -r|--refresh ]
The QLogic LUN scan utility re-scans all the devices connected to the QLogic HBA
SEE ALSO ql-lun-state-online(8), ql-hba-snapshot(8), ql-set-cmd-timeout(8)Matthias Schmitz <matthias@sigxcpu.org> July 2009 ql-dynamic-tgt-disc(8)