Hi
I am new to this forum.
I have few XML files and from each xml file I want to copy some specific 50 no of lines and copy them to some other file.
how to do that? pls help.. (5 Replies)
Dear All,
Regards of the Day.
I have a text file with some functions:
Function1
{
parameter 1
parameter 2
parameter 3
}
end
Function2
{
parameter 1
parameter 2
parameter 3
} (1 Reply)
Hi Gurus,
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
hello
im new here so i want to say hi everybody :)
i have to write a script and im newbie :/ i hope that in this forum are many ppl who knows subject :)
i have hundrets folders. in each folder is a file name trace.txt. each trace.txt has a lot of tracert's results separates with "-----" it... (6 Replies)
Hi Friends,
I have a file which has many of the statements like below
******** MAKING > noun1 < cg_all
statements
statements
statements
********* MAKING > noun2 < cg_all
statements
statements
statements
********* MAKING > noun3 < all
statements
statements
statements
I would... (3 Replies)
Hi all ,
i need an help here.!!!! i have a file that contains /etc/passwd files from some servers.
i need a script which search for presence of a user in the servers.
like if i give 51144 to the script. the should be o/p
Please help on this..... (4 Replies)
I have a "main" file which has blocks of data for each user defined by tags BEGIN and END.
BEGIN
ID_NUM:24879
USER:abc123
HOW:47M
CMD1:xyz1
CMD2:arp2
STATE:active
PROCESS:id60
END
BEGIN
ID_NUM:24880
USER:def123
HOW:4M
CMD1:xyz1
CMD2:xyz2
STATE:running
PROCESS:id64
END (7 Replies)
Hi,
In order to make our debugging easier in log files, I need this script.
My log file will be structured like this :
------Invoking myfile -param:start_time=1371150900000 -param:end_time=1371151800000 for 06/14/2013
<multiple lines here>
.....
- Step Sybase CDR Table.0 ended... (3 Replies)
Discussion started by: Lakshmikumari
3 Replies
LEARN ABOUT OSX
dispatch_api
dispatch_api(3) BSD Library Functions Manual dispatch_api(3)NAME
dispatch_api -- Designing API using dispatch
DESCRIPTION
The following is a brief summary of some of the common design patterns to consider when designing and implementing API in terms of dispatch
queues and blocks.
A general recommendation is to allow both a callback block and target dispatch queue to be specified. This gives the application the greatest
flexibility in handling asynchronous events.
It's also recommended that interfaces take only a single block as the last parameter. This is both for consistency across projects, as well
as the visual aesthetics of multiline blocks that are declared inline. The dispatch queue to which the block will be submitted should immedi-
ately precede the block argument (second-to-last argument). For example:
read_async(file, callback_queue, ^{
printf("received callback.
");
});
When function pointer alternatives to interfaces that take blocks are provided, the argument order of the function signature should be iden-
tical to the block variant; with the exception that the block argument is replaced with a context pointer, and a new last parameter is added,
which is the function to call.
The function based callback should pass the context pointer as the first argument, and the subsequent arguments should be identical to the
block based variant (albeit offset by one in order).
It is also important to use consistent naming. The dispatch API, for example, uses the suffix "_f" for function based variants.
SEE ALSO dispatch(3), dispatch_async(3), dispatch_queue_create(3)Darwin May 1, 2009 Darwin