chacko is right, you should use find. Additionally I'd like to question the rest of your script:
You should NOT USE BACKTICKS! Never! Yes, that's definite. Use
I do not unserstand why you want to use string concatenation instead of integer math. It might be only me but i find math much more easy to understand. Additionally you shoud declare variables you use, even if the shell doesn't need the declaration:
Hi,
Please help me.
Suppose I have a file which contains files like:
My file :/tmp/rooh_20020518.lst
it consists:
ASI00320225041925URD01
ASI00320225041925KER02
ASI00390228095244KER08 ... (1 Reply)
I am trying to cp files that have F0 as prefix in their name in path p1/p2 to path p3/p4
this command does not work - Why? (I am using HP/UX)
cp p1/p2/F0* p3/p4
thanks. (2 Replies)
Hi,
Is there a way to use find command to list the directories for certain permissions. I know we can use find . -type d -perm nnn, where nnn is the permission number . However I wold like to know if I wanna search for wild card permissions i.e 75* / 7* / 55* , as i do not know the actual... (1 Reply)
Hi,
I want to monitor my filesystem capacity and I want to df with grep wildcard for all 9*%.
Is this possible? I want to replaced all the existing complicated scripts I have in the system.
Thanks,
Itik (2 Replies)
Hi All,
I would like to find out the existence of files with wild card using CSH.
I have used the below code but does not seem to work.
Can any expert give me some advice ?
set nonomatch
set pattern = "_xxx"
set filetype = ( *$pattern* )
if ( -e $filetype) then
echo... (2 Replies)
Hi,
I am using RHEL5.
I have following if condition.
if
In the above condition, if the value of a contains word WARNING, it should match. i.e., WARNING_MESSAGE, CRITICAL WARNING, WARNING ALERT etc. it should match.
For b, alert error, ALERT ERROR, ERROR IMMEDIATE ACTION REQUIRED, etc... (2 Replies)
Can somebody help me with the following syntax? I want to find all
files that end with *.arc
SUFFIX=".arc"
find /tmp -name "\*$SUFFIX" -print 2>/dev/null
---------- Post updated at 03:45 PM ---------- Previous update was at 03:41 PM ----------
got it thanks
-name... (0 Replies)
Hi
I need a unix command which generates the list of files that dont match the wild card pattern in the current directory
say for example
I have files like
x.addfd.txt.H2012.txt
x.addfd.txt.H2012.txt
x.asegfd.txt.H2012.txt
adfd.bagddf
I need the list of files which dont match... (4 Replies)
Hi Firends,
I have requirement like find the directories in unix after my my deployment is done.
generally my requirement as follows.
/data/common/scripts is folder and it has multiple scripts in this path.
I have taken the back up of scripts folder as below
/data/common/0816_scripts... (4 Replies)
I want to use Find command to find directories that have certain name and them find files in that directory having only some extensions. So far, I have come up with this command to list directories with wild card name and list ALL the files in that directory.
find . -type d -name prog\* -print... (11 Replies)
Discussion started by: sssccc
11 Replies
LEARN ABOUT DEBIAN
mpi_error_string
MPI_Error_string(3) MPI MPI_Error_string(3)NAME
MPI_Error_string - Return a string for a given error code
SYNOPSIS
int MPI_Error_string(int errorcode, char *string, int *resultlen)
INPUT PARAMETERS
errorcode
- Error code returned by an MPI routine or an MPI error class
OUTPUT PARAMETER
string - Text that corresponds to the errorcode
resultlen
- Length of string
Notes: Error codes are the values return by MPI routines (in C) or in the ierr argument (in Fortran). These can be converted into
error classes with the routine MPI_Error_class .
THREAD AND INTERRUPT SAFETY
This routine is thread-safe. This means that this routine may be safely used by multiple threads without the need for any user-provided
thread locks. However, the routine is not interrupt safe. Typically, this is due to the use of memory allocation routines such as malloc
or other non-MPICH runtime routines that are themselves not interrupt-safe.
NOTES FOR FORTRAN
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK ) have an additional argument ierr at the end of the argument list. ierr
is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked
with the call statement.
All MPI objects (e.g., MPI_Datatype , MPI_Comm ) are of type INTEGER in Fortran.
ERRORS
All MPI routines (except MPI_Wtime and MPI_Wtick ) return an error value; C routines as the value of the function and Fortran routines in
the last argument. Before the value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI
job. The error handler may be changed with MPI_Comm_set_errhandler (for communicators), MPI_File_set_errhandler (for files), and
MPI_Win_set_errhandler (for RMA windows). The MPI-1 routine MPI_Errhandler_set may be used but its use is deprecated. The predefined
error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarentee that an MPI program can
continue past an error; however, MPI implementations will attempt to continue whenever possible.
MPI_SUCCESS
- No error; MPI routine completed successfully.
MPI_ERR_ARG
- Invalid argument. Some argument is invalid and is not identified by a specific error class (e.g., MPI_ERR_RANK ).
LOCATION
error_string.c
11/2/2007 MPI_Error_string(3)