07-22-2014
What have you trid so far? And, why is the moortowntoday entry in the same line as the seattletimes one?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am needing to extract and list domain names out of a very large text file. The text file contains tlds .com .net .org and others as well as third level domains e.g. host1.domain.com and the names are placed within paragraphs of text.
Domains do not have a http:// prefix so I'm thinking the... (6 Replies)
Discussion started by: totus
6 Replies
2. Shell Programming and Scripting
Hi All,
I have some HTML files and my requirement is to extract all the anchor text words from the HTML files along with their URLs and store the result in a separate text file separated by space. For example, <a href="/kid/stay_healthy/">Staying Healthy</a>
which has /kid/stay_healthy/ as... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
3. UNIX for Dummies Questions & Answers
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies
4. Shell Programming and Scripting
Hello Everyone,
I am trying to write a shell script(or Perl Script) that would do the following:
I have a file that contains the following lines:
File:
https://ims-svnus.com/dev/DB/trunk/feeds/templates/shell_script.txt -r860... (5 Replies)
Discussion started by: filter
5 Replies
5. Shell Programming and Scripting
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
6. Shell Programming and Scripting
I have the file like this:
Timestamp URL Text 1331635241000 http://example.com Peoples footage at www.test.com,http://example4.com 1331635231000 http://example1.net crack the nuts http://example6.com 1331635280000 http://example2.net ... (0 Replies)
Discussion started by: csim_mohan
0 Replies
7. Shell Programming and Scripting
I have the file like this:
Timestamp URL Text 1331635241000 http://example.com Peoples footage at www.test.com,http://example4.com 1331635231000 http://example1.net crack the nuts http://example6.com 1331635280000 http://example2.net ... (0 Replies)
Discussion started by: csim_mohan
0 Replies
8. Shell Programming and Scripting
I have the file like this:
Timestamp URL Text 1331635241000 http://example.com Peoples footage at www.test.com,http://example4.com 1331635231000 http://example1.net crack the nuts http://example6.com 1331635280000 http://example2.net ... (3 Replies)
Discussion started by: csim_mohan
3 Replies
9. UNIX for Dummies Questions & Answers
I have a file like this:
http://hello.com www.examplecom computer Company
I wanted to keep dot (.) infront of com. to make the file like this
http://hello.com www.example.com computer Company
I applied this expression
sed -r 's/com/.com/g'but what I get is:
http://hello.com ... (4 Replies)
Discussion started by: csim_mohan
4 Replies
10. Shell Programming and Scripting
Hello everybody
I have been trying to extract the domain name from the bind query log with different options, however always get stuck with domains that end with link .co.uk or .co.nz.
I tried the following, however only provides the first level:
awk -F"." '{print $(NF-1)"."$NF}' list.txt >... (30 Replies)
Discussion started by: omuhans123
30 Replies
LEARN ABOUT LINUX
posix_trace_get_attr
POSIX_TRACE_GET_ATTR(P) POSIX Programmer's Manual POSIX_TRACE_GET_ATTR(P)
NAME
posix_trace_get_attr, posix_trace_get_status - retrieve the trace attributes or trace status (TRACING)
SYNOPSIS
#include <trace.h>
int posix_trace_get_attr(trace_id_t trid, trace_attr_t *attr);
int posix_trace_get_status(trace_id_t trid,
struct posix_trace_status_info *statusinfo);
DESCRIPTION
The posix_trace_get_attr() function shall copy the attributes of the active trace stream identified by trid into the object pointed to by
the attr argument. If the Trace Log option is supported, trid may represent a pre-recorded trace log.
The posix_trace_get_status() function shall return, in the structure pointed to by the statusinfo argument, the current trace status for
the trace stream identified by the trid argument. These status values returned in the structure pointed to by statusinfo shall have been
appropriately read to ensure that the returned values are consistent. If the Trace Log option is supported and the trid argument refers
to a pre-recorded trace stream, the status shall be the status of the completed trace stream.
Each time the posix_trace_get_status() function is used, the overrun status of the trace stream shall be reset to POSIX_TRACE_NO_OVERRUN
immediately after the call completes. If the Trace Log option is supported, the posix_trace_get_status() function shall behave the same
as when the option is not supported except for the following differences:
* If the trid argument refers to a trace stream with log, each time the posix_trace_get_status() function is used, the log overrun status
of the trace stream shall be reset to POSIX_TRACE_NO_OVERRUN and the flush_error status shall be reset to zero immediately after the
call completes.
* If the trid argument refers to a pre-recorded trace stream, the status returned shall be the status of the completed trace stream and
the status values of the trace stream shall not be reset.
RETURN VALUE
Upon successful completion, these functions shall return a value of zero. Otherwise, they shall return the corresponding error number.
The posix_trace_get_attr() function stores the trace attributes in the object pointed to by attr, if successful.
The posix_trace_get_status() function stores the trace status in the object pointed to by statusinfo, if successful.
ERRORS
These functions shall fail if:
EINVAL The trace stream argument trid does not correspond to a valid active trace stream or a valid trace log.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
posix_trace_attr_destroy() , posix_trace_attr_init() , posix_trace_create() , posix_trace_open() , the Base Definitions volume of
IEEE Std 1003.1-2001, <trace.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 POSIX_TRACE_GET_ATTR(P)