having a look on the regex site I saw that characters can be search using hex values
http://www.regular-expressions.info/characters.html
So I try to use it whith grep to find a è on a string (octal Decimal Hexa : 350 232 E8) but it doesn't work
E.g.
/usr/bin/echo '\0350' | egrep '\xE8'
... (0 Replies)
Ok, I'm stumped and can't seem to find relevant info.
(I'm not even sure, I might have asked something similar before.):
I'm trying to use shell scripting/UNIX commands to extract URLs from a fairly large web page, with a view to ultimately wrapping this in PHP with exec() and including the... (2 Replies)
Hello everybody,
I'd like to know how is it I should write a regex in unix to match a string not followed by another string (anywhere in the line).
To be more specific, I want to find lines where "drop table" is found, but not followed anywhere in the line by the character "&".
For... (3 Replies)
Hi all,
I'm a beginner with linux, regex, grep, etc
I am trying to get data out of a file that has about 13,000 lines in this format
name - location
I want to grep all the names out to one file and the locations to another so I can put them into a spreadsheet.
Some have hyphenated... (14 Replies)
Hello,
I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide.
ls -aLl /bin | grep "\(x\)"
Which works, just highlights 'x' where ever, when ever.
I'm trying to to get (?:) to work but... (4 Replies)
Hey everyone,
Basically, all I'm looking for is a way to regex for not a certain string. The regex I'm looking to avoid matching is:
D222
i.e. an equivalent of:
awk '!/D222/'
The problem is that I use this in the following command in a Bash script:
ls ${source_directory} | awk... (1 Reply)
My input contains a single word lines.
From each line
data.txt
prjtestBlaBlatestBlaBla
prjthisBlaBlathisBlaBla
prjthatBlaBladpthatBlaBla
prjgoodBlaBladpgoodBlaBla
prjgood1BlaBla123dpgood1BlaBla123
Desired output -->
data_out.txt
prjtestBlaBla
prjthisBlaBla... (8 Replies)
Hello, all! Maybe the title is badly formulated, you can help me with that...!
I'm using the GNU grep, and I need to make sure that grep will extract only what I tell it to.
I have the following regular expression: *?
Well, I need to make sure I grep only a word which may start with a... (11 Replies)
I have a file that contains the 2 following lines (from /proc/mounts)
/dev/sdc1 /mnt/backup2 xfs rw,relatime,attr2,noquota 0 0
/dev/sdb1 /mnt/backup xfs rw,relatime,attr2,noquota 0 0
I need to match the string in the second column exactly so that only one result is returned, e.g.
> grep... (2 Replies)
Hi all,
I have the following entries in a file:
Cause Indicators=80 90
Cause Indicators=80 90
Cause Indicators=82 90
Cause Indicators=82 90
Cause Indicators=82 90
The first 2 digits might change so I am after a sort of grep which could find any first 2 digits + the second 2,... (3 Replies)
Discussion started by: nms
3 Replies
LEARN ABOUT OSF1
ripquery
ripquery(8) System Manager's Manual ripquery(8)NAME
ripquery - Queries RIP gateways
SYNOPSIS
/usr/sbin/ripquery [-1] [-2] [-[a5] authkey] [-n]
[-p] [-r] [-v] [-w time] gateway ...
FLAGS
Sends the query as a version 1 packet. Sends the query as a version 2 packet (default). Specifies the authentication password to use for
queries. If -a specified, an authentication type of SIMPLE will be used, if -5 is specified, an authentication type of MD5 will be used,
otherwise the default is an authentication type of NONE. Authentication fields in incoming packets will be displayed, but not validated.
Prevents the address of the responding host from being looked up to determine the symbolic name. Uses the RIP POLL command to request
information from the routing table. This is the default. If there is no response to the RIP POLL command, the RIP REQUEST command is
tried. The gated daemon responds to a POLL command with all the routes learned through RIP. Used the RIP REQUEST command to request
information from the gateway's routing table. Unlike the RIP POLL command, all gateways should support the RIP REQUEST. If there is no
response to the RIP REQUEST command, the RIP POLL command is tried. The gated daemon responds to a REQUEST command with all the routes he
announces out the specified interface. Because of limitations in the UDP interface, on systems based on BSD 4.3 Reno or earlier, REQUESTs
respond about the interface used to route packets back to the sender. This can be avoided by running ripquery on the host being queried.
Displays version information about ripquery before querying the gateways. Specifies the time in seconds to wait for the initial response
from a gateway. The default value is 5 seconds.
DESCRIPTION
The ripquery command is used to request all routes known by a RIP gateway by sending a RIP request or POLL command. The routing informa-
tion in any routing packets returned is displayed numerically and symbolically. The ripquery command is intended to be used as a tool for
debugging gateways, not for network management. SNMP is the preferred protocol for network management.
The ripquery command by default uses the RIP POLL command, which is an undocumented extension to the RIP specification supported by routed
on SunOS 3.x and later and by gated 1.4 and later. The RIP POLL command is preferred over the RIP REQUEST command because it is not sub-
ject to Split Horizon or Poisoned Reverse. See the RIP RFC for more information.
RELATED INFORMATION
Commands: gated(8), gdc(8), ospf_monitor(8), routed(8) delim off
ripquery(8)