Hi Guys,
I have a file like this:
aaa b c d e f
fsss g h i k l
qqq r t h n
I want:
aaa b c d e f
fsss g h i k l
qqq r t h , n
ggg p t e d u
qqq i o s , k (2 Replies)
Hi,
I know there are lots of threads on replacing text within files, usually using sed or awk. However, I find it hard to adapt examples that I found to my specific case. I am kind of new to UNIX and have hard times learning the syntax either for sed or awk so I would appreciate any help. Here's... (5 Replies)
Dear UNIX community,
I would like to to count characters from a specific row and have them displayed line-by-line.
I have a file called testAwk2.csv which contain the following data:
rabbit penguin goat
giraffe emu ostrich I would like to count in the middle row individually... (4 Replies)
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
I have a text file like this:
subject1:LecturerA:10
subject2:LecturerA:40
if I was given string in column 1 and 2 (which are subject 1 and LecturerA) , i need to update 3rd field of that line containing that given string , which is, number 10 need to be updated to 100 ,for example.
The... (6 Replies)
Hi...friends....
I want to create inventory...information for that I need to read some specific row say 2nd row from 1st 3 column and and write data with particular file used, I have some more column also but I need only 3 column data of first entry after header
I attached sample file..those... (12 Replies)
Hi,
I have a ldif file like below:
version: 1
dn: cn=Test Group,ou=Applications,dc=xyz,dc=com
objectClass: groupOfUniqueNames
objectClass: top
cn: Test Group
uniqueMember: uid=abc,ou=People,o=xyz,o=Corporate,dc=xyz,dc=com
dn: cn=Test Sub Group,cn=Test... (4 Replies)
Hello,
i need help with awk.
I have this file:
cat number
DirB port 67 er_enc_out 0 er_bad_os 0
DirB port 71 er_enc_out 56 er_bad_os 0
DirB port 74 er_enc_out 0 er_bad_os 0
DirB port 75 ... (4 Replies)
I am trying to add a condition to the below perl that will capture the GTtag and place a specific string in the last field of each line. The problem is that the GT value used is not right after the tag rather it is a few fields away. The values should always be 0/1 or 1/2 and are in bold in the... (12 Replies)
In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited,
that are in $1 of gene which is just a single column of text.
However only the line with the greatest $9 value in input needs to be printed.
So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT DEBIAN
visgrep
VISGREP(1) General Commands Manual VISGREP(1)NAME
visgrep - Visual grep, greps for images in another image
SYNOPSIS
visgrep [options] image.png detect.pat match.pat ...
DESCRIPTION
visgrep is a program that greps for image in another image.
All .pat files are created using png2pat(1) or rgb2pat(1). The image.png is scanned for detect.pat starting from X,Y given in parameters.
When detect.pat is found, then all the match.pat files are scanned at an offset of x,y given in parameters. If a match is found, then vis-
grep prints the x,y and index of the item.
For example, image.png is a screenshot and match1.pat .. match5.pat are images of letters a to e. Each of these letters is enclosed in a
blue box, so detect.pat is an image of the upper left corner of the box. This box is not included in the match*.pat files, so they are
actually offset 5 pixels down and 4 pixels to the left. You might run it like this then:
visgrep -x-4 -y5 image.png match_corner.pat match_a.pat match_b.bat ...
Etc, with all matches listed. Now suppose the screen showed ace so visgrep might output:
10,10 0
50,10 2
90,10 4
Showing that match_a.pat (index 0) is at 10,10 on the screen. If no match is found even though the detection image is found, the index will
be -1.
OPTIONS
A summary of options is included below.
-h Show summary of options.
-x Set x offset for detection matching.
-y Set y offset for detection matching.
-X Start scanning at X.
-Y Start scanning at Y.
-t Set tolerance for 'fuzzy' matches, higher numbers are more tolerant.
EXIT STATUS
0 at least one match was made.
1 no matches were made.
2 an error occured.
SEE ALSO pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), xte(1).
AUTHOR
visgrep was written by Steve Slaven <bpk@hoopajoo.net>.
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian project (but may be used by others).
April 20, 2004 VISGREP(1)