Hi
First post on here hope you can help with something
I have a file with a couple of thousand lines (all lines are one string long, i.e a number
I have another file that is over 1 million lines long
Example entry from file 1
123456
Example from file 2
123456 mjhyuihbn ... (5 Replies)
how to grep a file based on another input file
File1
ashu 1 ninetwo hari
qwer 6 givefour jan
fghj 8 noeight mar
vbmi 7 noput feb
--
---
File2
noput
noeight
---
--
Taking the input of grep as File2, a search need to be made in File1 giving File3 as output: (7 Replies)
does any one know how to turn the equivalent of this command:
awk '/2011 John Doe 8344/,0' /tmp/ops.log | egrep -c "received request"
to
something that would use egrep instead of awk?
What the awk command does is, it searches the ops.log file for "2011 John Doe 8344". When it finds it,... (4 Replies)
I have a list of fields that I want to check a file for, returning that field if it not found at all in the file. Is there a way to do a grep -lc and return the passed variable too rather then just the count?
I am doing some crappy work-around now but I was not sure how to regrep this for :0 so... (3 Replies)
I have a file named as ucid.txt
It has multiple rows of "id". I need to search and grep each line of it from a file named as pw_logs.txt and put the results into another file.
Please help ! Thanks. (8 Replies)
Hi All,
I need to recursively grep several folders for a MAC address and display the results with the date of the file name at the start. Even better would be if the final results were displayed chronologically so the newest file is always at the end. Oldest at the top, regardless of what... (8 Replies)
Hello,
I have a file with a large number of words each listed in sequential order one word per line.
I want to search these words in another file which has the structure
Both the files are large, but the words in the sourcefile are all available in the target file.
I tried to grep... (2 Replies)
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT DEBIAN
ns_connqueueheaders
Ns_ConnQueueHeaders(3aolserver) AOLserver Library Procedures Ns_ConnQueueHeaders(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_ConnQueueHeaders, Ns_ConnFlushHeaders - Routines to construct send HTTP response headers
SYNOPSIS
#include "ns.h"
void
Ns_ConnFlushHeaders(conn, status)
void
Ns_ConnQueueHeaders(conn, status)
ARGUMENTS
Ns_Conn conn (in) Pointer to open connection.
int status (in) HTTP response status.
_________________________________________________________________DESCRIPTION
These function format headers pending in the outputheaders Ns_Set 0fRtto indicatenendsofoheaders.ture to be sent to the client. The head-
ers d0fR separators betweeneheaderTkey:evalueepairs andhattrailing status code (e.g., "HTTP/1.1 200 OK") is formatted as a single string
with
int Ns_ConnFlushHeaders(conn)
This routine constructs the headers and then attempts to send them immediately to the client. The result is either NS_OK if the
content was sent, NS_ERROR otherwise.
void Ns_ConnQueueHeaders(conn)
This routine constructs the headers as with Ns_ConnFlushHeaders but does not send the data to the client. Instead, the resulting
headers string is stored in an internal buffer to be sent later on the first call to Ns_ConnSend. Delaying the flush of the content
helps increase performance by providing the opportunity to combine the headers and content responses into a single system call.
Note that higher level routines which generate complete responses such as the Ns_ConnReturn routines or Ns_ConnFlush call Ns_ConnQueueHead-
ers automatically as needed. Only custom code which constructs headers manually and sends content directly must include a call to Ns_Con-
nQueueHeaders or Ns_ConnFlushHeaders before generating the output content.
EXAMPLES
The following example demonstrates a simple response. In this case, the headers are queued and sent with the small "hello" message on the
call to Ns_ConnPuts which internally calls Ns_ConnSend:
Ns_ConnSetRequiredHeaders(conn, "text/plain", 5);
Ns_ConnQueueHeaders(conn, 200);
Ns_ConnPuts(conn, "hello");
SEE ALSO Ns_ConnSetHeaders(3), Ns_ConnSend(3)KEYWORDS
connection, headers
AOLserver 4.0 Ns_ConnQueueHeaders(3aolserver)