In Unix, how do I delete lines in a file that match a particular pattern without opening it. File contents are
foo line1
misc
whatever
foo line 2
i want to delete all lines that have the pattern "foo" without opening the file. File should eventually contain
misc
whatever (1 Reply)
I am using Solaris, I want to print
3 lines before pattern match
pattern
5 lines after pattern match
Pattern is abcd to be searched in a.txt. Looking for the solution in sed/awk/perl. Thanks ..
Input File a.txt:
=================
1
2
3
abcd
4
5
6
7
8 (7 Replies)
Hi,
I need help with this-
input.txt :
L B white
X Y white
A B brown
M Y black
Read this input file and if 3rd column is "white", then add specific lines to another file insert.txt.
If 3rd column is brown, add different set of lines to insert.txt, and so on.
For example, the given... (6 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
I have a file with class c IP addresses that I need to match to a column and print the matching lines of another file.
I started playing with grep -if file01.out file02.out but I am stuck as to how to match it to a column and print the matching lines;
cat file01.out
10.150.140... (5 Replies)
In the below file I am trying to grep or similar, all lines where only AF= is less than 0.4.. Thank you :).
grep
grep "AF=" ,+ .4 file
file
12 112036782 . T C 34.0248 PASS ... (3 Replies)
Hi All ,
I have to write one Perl script in which I need to read one pre-existing xls and based on pattern match for one word in some cells of the XLS , I need to fill the entire row with one color of that matched cell and write the content to another excel
Please find the below stated... (2 Replies)
Discussion started by: kshitij
2 Replies
LEARN ABOUT OSX
mpi_file_read_at_all_end
MPI_File_read_at_all_end(3OpenMPI)MPI_File_read_at_all_end(3OpenMPI)NAME
MPI_File_read_at_all_end - Reads a file at explicitly specified offsets; ending part of a split collective routine (blocking).
SYNTAX
C Syntax
#include <mpi.h>
int MPI_File_read_at_all_end(MPI_File fh, void *buf,
MPI_Status *status)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_FILE_READ_AT_ALL_END(FH, BUF, STATUS, IERROR)
<TYPE> BUF(*)
INTEGER FH, STATUS(MPI_STATUS_SIZE), IERROR
C++ Syntax
#include <mpi.h>
void MPI::File::Read_at_all_end(void* buf, MPI::Status& status)
void MPI::File::Read_at_all_end(void* buf)
INPUT PARAMETER
fh File handle (handle).
OUTPUT PARAMETERS
buf Initial address of buffer (choice).
status Status object (status).
IERROR Fortran only: Error status (integer).
DESCRIPTION
MPI_File_read_at_all_end is a split collective routine that stores the number of elements actually read from the file associated with fh in
status. MPI_File_read_at_all_end blocks until the operation initiated by MPI_File_read_at_all_begin completes. The data is taken out of
those parts of the file specified by the current view. All other fields of status are undefined.
NOTES
All the nonblocking collective routines for data access are "split" into two routines, each with _begin or _end as a suffix. These split
collective routines are subject to the semantic rules described in Section 9.4.5 of the MPI-2 standard.
ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object.
Before the error value is returned, the current MPI error handler is called. For MPI I/O function errors, the default error handler is set
to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may
be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error.
Open MPI 1.2 September 2006 MPI_File_read_at_all_end(3OpenMPI)