04-07-2013
Quote:
Originally Posted by
twistedpair
Hi all,
When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim file(*.SUM*)
Presently iam using the following command in my .gvimrc, but the cursor is going to the second occurrence of the word (: ERROR)
autocmd BufReadPost *.SUM* /: ERROR
Plz help me out
Posting the same question to multiple forums (in this case
UNIX for Dummies Questions & Answers and
UNIX for Advanced & Expert Users) is not allowed. Please close one of these threads.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. UNIX for Dummies Questions & Answers
Hey All,
On commad promt of a shell..
How can we move our cursor word by word.
Like Ctrl+A takes to the starting of the command...
Any shortcut like that..?
Thanks
pbsrinivas (1 Reply)
Discussion started by: pbsrinivas
1 Replies
3. Shell Programming and Scripting
i have this line
my,name,is,john
stored in a file d.sh and i wish to print the line as string..but im getting word by word...have tried this.........
for in $(cat $d.sh);
do
echo $i
done
but this is giving me
my
name
is
john (6 Replies)
Discussion started by: vadharah
6 Replies
4. UNIX for Dummies Questions & Answers
Assume I have a text file as below:
me
con pi
ind ken
pras ur
me
con rome
ind kent
pras urs
pintu
con mys
ind pan
pras ki
con kit
ind sys
My requirement,
I need to search for "con rome" and if exists, then print 4th word from rome, i.e in above example, since "con rome"... (4 Replies)
Discussion started by: jaggesh
4 Replies
5. Shell Programming and Scripting
Adding a word in front of a word of each line.In that line only one word will be there.
pl help:( (4 Replies)
Discussion started by: Ramesh Vellanki
4 Replies
6. UNIX for Dummies Questions & Answers
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Discussion started by: kri_swami
2 Replies
7. Shell Programming and Scripting
i have a file in this pattern
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH1 word1 IMAGE word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1 word2 word3 word4
MATCH2 word1... (7 Replies)
Discussion started by: bangaram
7 Replies
8. Shell Programming and Scripting
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Discussion started by: venu
3 Replies
9. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
10. Shell Programming and Scripting
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
LEARN ABOUT SUNOS
mlib_imagestddev_fp
mlib_ImageStdDev_Fp(3MLIB) mediaLib Library Functions mlib_ImageStdDev_Fp(3MLIB)
NAME
mlib_ImageStdDev_Fp - image standard deviation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageStdDev_Fp(mlib_d64 *sdev, const mlib_image *img, const mlib_d64 *mean);
DESCRIPTION
The mlib_ImageStdDev_Fp() function computes the standard deviation for each channel in the floating-point source image.
It uses the following equation:
1 w-1 h-1
sdev[i] = { ----- * SUM SUM (img[x][y][i] - mean[i])**2 }**0.5
w*h x=0 y=0
where, in the case of mean == NULL,
1 w-1 h-1
mean[i] = ----- * SUM SUM img[x][y][i]
w*h x=0 y=0
PARAMETERS
The function takes the following arguments:
sdev Pointer to standard deviation array, whose size is the number of channels in the source image. sdev[i] contains the stan-
dard deviation of channel i.
img Pointer to input image.
mean Pointer to pre-computed mean array for each channel. (If NULL, it will be computed.) mean[i] contains the mean of channel
i.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_ImageMean(3MLIB), mlib_ImageMean_Fp(3MLIB), mlib_ImageStdDev(3MLIB), attributes(5)
SunOS 5.10 10 Nov 2004 mlib_ImageStdDev_Fp(3MLIB)