Sponsored Content
Top Forums Shell Programming and Scripting Grepping string from out file Post 302392098 by raghunsi on Wednesday 3rd of February 2010 10:34:26 AM
Old 02-03-2010
Grepping string from out file

Guys ..

Need to pull this highlighted strings irrespective of line numbers & should be echoed . But these strings are from Outfile from different dir. In which way this can be grepped ?? Need an idea

Code:
http-timeout 120 seconds
 persistent-timeout 180 seconds
 host-rewriting on
 silence-warning off
 compression off
 include-response-type-encoding off
 always-show-errors off
 disallow-get off
[Services](config http Firewall)# [Services](config http Firewall)#  admin-state enabled
 ip-address LocalIP
 summary admin-state
 priority normal
 port 9091
 http-timeout 120 seconds
 persistent-timeout 180 seconds
 host-rewriting on
 silence-warning off
 compression off
 include-response-type-encoding off
 always-show-errors off
 disallow-get off
 disallow-empty-reply off
 persistent-connections on
 client-address X-Client-IP
 httpproxy-port 800
 version HTTP/1.1 HTTP/1.1
 chunked-uploads off
  monitor-processing-policy terminate-at-first-throttle
 debug-mode off
 debug-history 25
 type loopback-proxy
 attachment-byte-count 2000000000 bytes
 attachment-package-byte-count 0 bytes
 external-references forbid
[Services](config http Firewall)# [Services](config)# Overwrite previously saved configuration? [y/n]: Configuration saved successfully.
[Services](config)# [Services]# Goodbye

Thanks in Advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grepping the first 3 characters from a file

Hi I was wondering if it's possible to use a command to get the first 3 characters of a line in a text file, I tried grep but it returns the whole line but I am only interested in the first 3 characters. Is this possible with grep or I need any other command? Also is it possible deleting from... (2 Replies)
Discussion started by: g-e-n-o
2 Replies

2. UNIX for Dummies Questions & Answers

grepping the first 3 characters from a file

give this a try and let me know if it works grep '^' filename rachael (2 Replies)
Discussion started by: rachael
2 Replies

3. Shell Programming and Scripting

Grepping log file

Dear All, I have a log file that is dislpayed as: <msg time='2009-10-14T05:46:42.580+00:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='mtdb_a' host_addr='UNKNOWN' version='1'> <txt>14-OCT-2009 05:46:42 *... (19 Replies)
Discussion started by: x-plicit78
19 Replies

4. AIX

Help with looping a file and grepping a string

I have 2 files: fileA and fileB. content of fileA --------------- admin.teacher is in new york; admin.mason is in new york; admin.driver is in new york city; user.trucker is in hartford; admin.developer is in new york state; content of fileB ---------------- admin.teacher is in... (8 Replies)
Discussion started by: lowprofile
8 Replies

5. Shell Programming and Scripting

Grepping file and returning passed variable if the value does not exist in file at all.

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)
Discussion started by: personalt
3 Replies

6. Shell Programming and Scripting

grepping multiple matches in a single string

Hi All, I'm trying to grep for 3 patterns in a string of gibberish. It so happens that each line is appended by a date/time stamp and i was able to figure out how to extract only the datetime. here is the string.. i have to display tinker tailor soldier spy Please can some help... (2 Replies)
Discussion started by: Irishboy24
2 Replies

7. Shell Programming and Scripting

Display file date after grepping a string in the file

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)
Discussion started by: quemalr
8 Replies

8. AIX

Grepping before and after lines for required string

Hi All, I am new to AIX unix . i need to grep for a pattern and if pattern is found then i need 3 before the pattern line found and 3 lines after the pattern found. (11 Replies)
Discussion started by: coolvibh
11 Replies

9. Shell Programming and Scripting

Grepping the logs with respect to string search

Hi Folks, I have a log file at the following location.. /opt/ert/abc.log Now abc.log contain the following enteries in this format below.. 23-Jul-2014 10:09.32.204 ERROR abc.log cdfrer tyre fgty >>>>> cqno : 78539132 abc Id : 0 Sabc : 20140724 Now in log file (abc.log) I want to... (2 Replies)
Discussion started by: tuntun343466
2 Replies

10. Shell Programming and Scripting

ksh Script, Reading A File, Grepping A File Contents In Another File

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
VTUND(8)						      System Manager's Manual							  VTUND(8)

NAME
vtund - VTun(Virtual Tunnel) daemon. SYNOPSIS
vtund < -s > [ -i ] [ -n ] [ -f file ] [ -P port ] vtund [ -f file ] [ -P port ] [ -p ] [ -m ] [ -t timeout ] [ -n ] < session > < server address > DESCRIPTION
VTun provides the method for creating Virtual Tunnels over TCP/IP networks and allows to shape, compress, encrypt traffic in that tunnels. Supported type of tunnels are: PPP, IP, Ethernet and most of other serial protocols and programs. VTun is easily and highly configurable, it can be used for various network task like VPN, Mobile IP, Shaped Internet access, IP address saving, etc. It is completely user space implementation and does not require modification to any kernel parts. OPTIONS
-f file Read config information from the file (full path required). By default vtund uses /etc/vtund.conf -n Do not become daemon. Server mode: -s Run as the server. -i Run as the inetd server. -P port Listen for connection on the specified port By default vtund listens on TCP port 5000. This options is equivalent to the 'port' option of config file. Client mode: -P port Connect to the server on the specified port By default vtund connects to TCP port 5000. This options is equivalent to the 'port' option of config file. -p Reconnect to the server after connection termination. By default vtund will exit if connection has been terminated. This options is equivalent to the 'persist' option of config file. -m Force memory pages to be locked memory-resident to prevent potential VM deadlock. Useful with NFS traffic. This option has no con- fig file equivalent. -t timeout Connect timeout Default is 30 seconds. This options is equivalent to the 'timeout' option of config file. session Session name from the config file. server Address of the server to connect to. Either IP address or domain name can be specified. FILES
/etc/vtund.conf Main configuration file with sessions and other information. See vtund.conf example provided with distribution and vtund.conf(5) for more information. /var/lock/vtund/ Session lock files. /var/log/vtund/ Connection statistic log files. Format: Date Uncomp_In Uncomp_Out Comp_In Comp_Out SIGNALS
SIGHUP Server mode: Causes vtund to reread the config file. Client mode: Causes vtund to reestablish the connection. SIGUSR1 This signal causes vtund to reset statistic counters. SEE ALSO
vtund.conf(5) NOTES
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/) AUTHORS
Maxim Krasnyansky <max_mk@yahoo.com> VTUND(8)
All times are GMT -4. The time now is 11:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy