hi, i have a text file wich contains following informations:
1 Record 90 in base GUJA_2008 (Created: 2008-01-14 19:00:38, Modified: 2008-01-15 18:54:33)
1 YADM_20080101_A91645666_A91645666
4 2008/01/15/ADM.ADM/20080101.ADM.ADM.A91645666G001.jff
1 Record 91 in base GUJA_2008 (Created:... (3 Replies)
I have a huge file and every paragraph has a date. But I want to retrieve the paras for the last two days only. So I can grep and findout the linenum for the first line since yesterday. Now I want to display everything after that line. And I am trying to do this inside a script so the linenum is a... (4 Replies)
I have a file that does not have much formatting. I would like every time it finds a tag (something that starts with < and end with > like <Tag1> ) to be at the beginning of the line and joined with the next line. I tried sed with append and can not get it right and also hold and get in sed... (4 Replies)
Hi all,
I'm looking for some help. I have a file (very long) that is organized like below:
>Cluster 0
0 283nt, >01_FRYJ6ZM12HMXZS... at +/99%
1 279nt, >01_FRYJ6ZM12HN12A... at +/99%
2 281nt, >01_FRYJ6ZM12HM4TS... at +/99%
3 283nt, >01_FRYJ6ZM12HM946... at +/99%
4 279nt,... (4 Replies)
Hi,
I am trying to locate the occurences of certain pattern like 'Possible network disconnect' in a text file. I can get the actual lines matching the pttern using:
grep -w 'Possible network disconnect' file_name.
But I am more interested in getting the timing of these events which are... (7 Replies)
Hi all I am trying to process some data sample input is like this
VARIABLE : T
axis TDAY
TIME : 02-FEB-2004 17:54
19755.
VARIABLE : quality flag
FILENAME : 1900054_prof.nc
Z : 41
... (3 Replies)
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
Hi - I have req to join broken lines and remove empty lines but should NOT be in one line. It has to be as is line by line. The challenge here is there is no end of line/start of line char.
thanks in advance
Source:-
2003-04-34024|04-10-2003|Claims|Claim|01-13-2003|Air Bag:Driver;... (7 Replies)
Hi all!
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Example:
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
Discussion started by: demmel
8 Replies
LEARN ABOUT DEBIAN
pvm_catchout
CATCHOUT(3PVM) PVM Version 3.4 CATCHOUT(3PVM)NAME
pvm_catchout - Catch output from child tasks.
SYNOPSIS
C #include <stdio.h>
int info = pvm_catchout( FILE *ff )
Fortran call pvmfcatchout( onoff, info )
PARAMETERS
ff File descriptor on which to write collected output.
onoff Integer parameter. Turns output collection on or off.
info Integer status code returned by the routine. Values less than zero indicate an error.
DESCRIPTION
The routine pvm_catchout causes the calling task (the parent) to catch output from any tasks spawned after the call to pvm_catchout. Char-
acters printed on stdout or stderr in children tasks are collected by the pvmds and sent in control messages to the parent task, which tags
each line and appends it to the specified file. Output from grandchildren (spawned by children) tasks is also collected, provided the
children don't reset their PvmOutputTid.
If option PvmShowTids (see pvm_setopt) is true (nonzero), output is printed as shown below, tagged with the task id where the output origi-
nated:
[txxxxx] BEGIN
[txxxxx] (text from child task)
[txxxxx] END
The output from each task includes one BEGIN line and one END line, with whatever the task prints in between. If PvmShowTids is false, raw
output is printed with no additional information.
In C, the output file descriptor may be specified. Giving a null pointer turns output collection off for any subsequently spawned child
tasks. (Any existing output collection will still proceed at the child tasks, until they exit or change theirPvmOutputTid or related set-
tings - see man page for pvm_setopt().) In Fortran, output collection can only be turned on or off (again only for subsequently spawned
child tasks), and is always logged to the stdout of the parent task.
If pvm_exit is called while output collection is in effect, it will block in order to print all the output, until all tasks sending the
given task output have exited. To avoid this, output collection can be turned off by calling pvm_catchout(0) before calling pvm_exit.
pvm_catchout() always returns 0.
EXAMPLES
C:
#include <stdio.h>
pvm_catchout(stdout);
Fortran:
CALL PVMFCATCHOUT( 1, INFO )
SEE ALSO pvm_exit(3PVM), pvm_setopt(3PVM), pvm_spawn(3PVM)
13 July, 1994 CATCHOUT(3PVM)