09-27-2010
Thank you so much for your pro-active help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone,
I have a file in which a word is repeated more than one time and I want to know how many times it is repeated.
ex: if i repeated word 'guru' in 10 lines I can get the o/p as:
cat filename | grep -c 'guru'.
How ever if the word is repeated more than one time, then how can I... (4 Replies)
Discussion started by: gurukottur
4 Replies
2. Shell Programming and Scripting
Hi all,
I have a file with lines written somewhat like this.
aaaa
ccc
aa
linux
browse = no
xssxw
cdcedc
dcsdcd
csdw
police
dwed
dwd
browse = no
cdecec (2 Replies)
Discussion started by: vikas027
2 Replies
3. Shell Programming and Scripting
Hello,
I'm looking for a wait to count the number of occurrences of a certain string of characters within a file. The file that I trying to parce has segments within the file that have a header and footer to each segment and I'm trying to do a count of the header string and compare it to a count... (9 Replies)
Discussion started by: bd_joy
9 Replies
4. Shell Programming and Scripting
Hi,
Below is my input file and desired output file:
Input file:
>header_N_1
ASFDGDGNDGEGWETWRYWTETWNETOWETWETWNETTETNWET
.
.
Desired output file:
>header_N_1
ASFDGDGDGEGWETWRYWTETWETOWETWETWETTETWET
.
.
From the input file, I just hope to exclude the 'N' word from its content... (5 Replies)
Discussion started by: patrick87
5 Replies
5. Shell Programming and Scripting
Hello,
I have several xml files from which I want to find and return a particular string
I want to locate the InId="00000008". Now that is inlcuded within a tag and ofcourse the number is different every time
this is what I came up with given that after greping the line that contains the... (6 Replies)
Discussion started by: TasosARISFC
6 Replies
6. Shell Programming and Scripting
Hello Experts,
I have to count the word like "RESULT_CODE: : -6" from the multiple files names like req.result_2_vqx-71144750.log for a particular date. Lets suppose the date is 10 OCT 2011.
How I can do it with a single command in Solaris environment.
Reagrds
Oracle User (8 Replies)
Discussion started by: Oracle_User
8 Replies
7. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
8. UNIX for Dummies Questions & Answers
Hi all
I am working on disallowing users to use easy passwords in pam.d setting on RHEL 5.7 and SuSe 11, and I was hoping to add more words into the current cracklib dict, so I use "echo" command to append new words into the file
I dont want to add the same words into the dict, I think I... (2 Replies)
Discussion started by: hedkandi
2 Replies
9. Shell Programming and Scripting
With any cmd like sed grep ask etc... (1 Reply)
Discussion started by: sidpatil
1 Replies
10. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
LEARN ABOUT REDHAT
pvmfsetsbuf
SETSBUF(3PVM) PVM Version 3.4 SETSBUF(3PVM)
NAME
pvm_setsbuf - Switches the active send buffer.
SYNOPSIS
C int oldbuf = pvm_setsbuf( int bufid )
Fortran call pvmfsetsbuf( bufid, oldbuf )
PARAMETERS
bufid Integer the message buffer identifier for the new active send buffer. A value of 0 indicates the default receive buffer.
oldbuf Integer returning the message buffer identifier for the previous active send buffer.
DESCRIPTION
The routine pvm_setsbuf switches the active send buffer to bufid and saves the previous active send buffer oldbuf. If bufid is set to 0
then the present active send buffer is saved and no active send buffer exists.
The routine is required when managing multiple message buffers. For example switching back and forth between two buffers. One buffer
could be used to send information to a graphical interface while a second buffer could be used send data to other tasks in the application.
EXAMPLES
C:
sbuf1 = pvm_setsbuf( sbuf2 );
Fortran:
CALL PVMFSETSBUF( NEWBUF, OLDBUF )
ERRORS
These error conditions can be returned by pvm_setsbuf
PvmBadParam
giving an invalid bufid.
PvmNoSuchBuf
switching to a non-existent message buffer.
SEE ALSO
pvm_setrbuf(3PVM)
30 August, 1993 SETSBUF(3PVM)