05-03-2010
Hi friend,
Thank you very much. Can you explain how this script working. Especially i dont understand the while loop.
while read date infos
whats s this infos. whay r u using it in while loop. whats the use. and
set -- ${infos} - i dont understand this
eval status=\$$# - i dont understand this
Please explain me Jean-Pierre.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone..
Anybody having idea to get the latest file from CVS repository through schell scripts.
Thanks in advance.
Regards
shahid Bakshi (4 Replies)
Discussion started by: shahidbakshi
4 Replies
2. UNIX for Dummies Questions & Answers
Hi, I have 600 text files. In each txt file, I have 3 columns, e.g:
File 1
a 0.21 0.003
b 0.34 0.004
c 0.72 0.002
File 2
a 0.25 0.0083
b 0.38 0.0047
c 0.79 0.00234
File 3
a 0.45 0.0063
b 0.88 0.0027
c 0.29 0.00204
...
my filename as "sc2408_0_5278.txt sc2408_0_5279.txt... (2 Replies)
Discussion started by: libenhelen
2 Replies
3. Shell Programming and Scripting
Hi,
I would like to seek for methods to do selective extraction of line froma file. The scenario as follows:
I have a file with content:
message a
received on 11:10:00
file size: 10 bytes
send by abc
message b
received on 11:20:00
file size: 10 bytes
send by abc (3 Replies)
Discussion started by: dwgi32
3 Replies
4. Shell Programming and Scripting
Hello dear friends,
My problem as explained below seems really basic.
Fact is that I'm totally new to programming, and have only a week to produce a script ( CShell or Perl ? ) to perform this action.
While searching on the forums, I found a command that could help me, but I don't know... (2 Replies)
Discussion started by: ackheron
2 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
I want to extract some particular data from a files and than add all the values .
but i m not able to cut the particular word(USU-INOCT and USU-OUTOCT) as it is coming not in column. and than able to add values coming in it .
can anyone help me Please
cat <file name>
... (7 Replies)
Discussion started by: anamdev
7 Replies
6. Shell Programming and Scripting
I have roughly ~30 .txt files in a directory which all have unique names. These files all contain text arranged in columns separated by whitespace (example file:
[#YY MM DD hh mm WDIR WSPD GST WVHT DPD APD MWD PRES ATMP WTMP DEWP VIS TIDE
#yr mo dy hr mn degT m/s m/s m sec ... (5 Replies)
Discussion started by: aozgaa
5 Replies
7. Shell Programming and Scripting
Our university has upgraded its version of a computational chemistry program that our group uses quite regularly. In the past we have been able to extract frequency spectra from log files that are generated. Since the upgrade, the viewing program errors out. I've been able to trace down the changes... (16 Replies)
Discussion started by: wsuchem
16 Replies
8. Shell Programming and Scripting
hey!!! I have 2 files file1 is as ids.txt and is
>gi|546473186|gb|AWWX01630222.1|
>gi|546473233|gb|AWWX01630175.1|
>gi|546473323|gb|AWWX01630097.1|
>gi|546474044|gb|AWWX01629456.1|
>gi|546474165|gb|AWWX01629352.1|
file2 is sequences.fasta and is like
>gi|546473233|gb|AWWX01630175.1|... (9 Replies)
Discussion started by: harpreetmanku04
9 Replies
9. Shell Programming and Scripting
The below bash will untar each tar.bz2 folder in the directory, then remove the tar.bz2.
Each of the tar.bz2 folders ranges from 40-75GB and currently takes ~2 hours to extract. Is there a way to speed up the extraction process?
I am using a xeon processor with 12 cores. Thank you :).
... (7 Replies)
Discussion started by: cmccabe
7 Replies
10. UNIX for Beginners Questions & Answers
Please know that I am very new to unix and trying to learn 'on the job'. I'm only manipulating large tab-delimited files (millions of rows), but I'm stuck and don't know how to proceed with the following. Hoping for some friendly advice :)
I have 2 tab-delimited files - with differing column &... (10 Replies)
Discussion started by: GTed
10 Replies
LEARN ABOUT REDHAT
pvmfaddhost
ADDHOSTS(3PVM) PVM Version 3.4 ADDHOSTS(3PVM)
NAME
pvm_addhosts - Add hosts to the virtual machine.
SYNOPSIS
C int info = pvm_addhosts( char **hosts, int nhost, int *infos )
Fortran call pvmfaddhost( host, info )
PARAMETERS
hosts An array of strings naming the hosts to be added. Pvmd must already be installed and the user must have an account on the speci-
fied hosts.
nhost Integer specifying the length of array hosts.
infos Integer array of length nhost which returns the status for each host. Values less than zero indicate an error, while positive val-
ues are TIDs of the new hosts.
host Character string naming the host to be added.
info Integer status code returned by the routine. Values less than nhost indicate partial failure, and values less than 1 indicate
total failure.
DESCRIPTION
The routine pvm_addhosts adds the computers named in hosts to the configuration of computers making up the virtual machine. The names
should have the same syntax as lines of a pvmd hostfile (see man page for pvmd3): A hostname followed by options of the form xx=y.
If pvm_addhosts is successful, info will be equal to nhost. Partial success is indicated by 0 < info < nhost, and total failure by info <
1. The array infos can be checked to determine which host caused the error.
The Fortran routine pvmfaddhost adds a single host to the configuration with each call. info will be 1 if successful or < 0 if error.
The status of hosts can be requested by the application using pvm_mstat and pvm_config. If a host fails it will be automatically deleted
from the configuration. Using pvm_addhosts a replacement host can be added by the application, however it is the responsibility of the
application developer to make his application tolerant of host failure. Another use of this feature would be to add more hosts as they
become available, for example on a weekend, or if the application dynamically determines it could use more computational power.
EXAMPLES
C:
static char *hosts[] = {
"sparky",
"thud.cs.utk.edu",
};
info = pvm_addhosts( hosts, 2, infos );
Fortran:
CALL PVMFADDHOST( 'azure', INFO )
ERRORS
The following error conditions can be returned by pvm_addhosts:
PvmBadParam
giving an invalid argument value.
PvmAlready
another task is currently adding hosts.
PvmSysErr
local pvmd is not responding.
and in the infos vector:
PvmBadParam
bad hostname syntax.
PvmNoHost
no such host.
PvmCantStart
failed to start pvmd on host.
PvmDupHost
host already configured.
PvmBadVersion
pvmd protocol versions don't match.
PvmOutOfRes
PVM has run out of system resources.
SEE ALSO
pvm_pvmd3(1PVM), pvm_delhosts(3PVM), pvm_start_pvmd(3PVM), pvm_config(3PVM), pvm_mstat(3PVM)
22 February, 1994 ADDHOSTS(3PVM)