Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Effects of grep -o when it's not available Post 302268901 by earnstaf on Tuesday 16th of December 2008 01:57:07 PM
Old 12-16-2008
Effects of grep -o when it's not available

I'm on a Solaris box that doesn't have -o as an option for grep (trying to return match only).

Is there any way to get this functionality without the -o option?

I've tried both sed and awk doing something like:
Code:
echo "this is a test" | awk '/test/'
or
echo "this is a test | sed '/test/p'

but those match on the whole line, just as grep does without a -o.

Ideas?

edit:
from the man page:
Quote:
-o, --only-matching
Show only the part of a matching line that matches PATTERN

Last edited by earnstaf; 12-16-2008 at 03:44 PM..
 

6 More Discussions You Might Find Interesting

1. Cybersecurity

Effects on data size during encrypted transfer

Hi There, I wonder if any one can help me. I want to transfer a file from one site to another over an encrypted link. I want to know if there will be any imcrease in the data that will travel on the link? For example, I want to transfer a 1 GB file from one site to another, using an encrypted... (4 Replies)
Discussion started by: ahmerin
4 Replies

2. Red Hat

3D effects on RHEL6 OC

Hello, I just installed RHEL6 OC on my T61p. It's great! Just for fun I'd like to use some fancy cool Desktop effects. I tried to enable 3D Desktop effects from OC Welcome Center but it gave me error message: Accelerated 3D graphics is not available. Desktop effects require hardware 3D support.... (7 Replies)
Discussion started by: susja
7 Replies

3. Red Hat

3d effects in rhel6

I installed rhel 6.0 in my laptop but it is not upporting 3d graphics of rhel6 and i am getting an error message "Accelerated 3d graphics not available Desktop effects require hardware 3D support." my laptop is dll studio 1558 and my graphic card is ATI Radeon 5470 with 1 gb dedicated ram. (6 Replies)
Discussion started by: nileshgupta
6 Replies

4. Red Hat

Effects of /etc/fstab file!

Hi Folks! I accidentally overwrote in /etc/fstab file. Can you guys please tell me, what impact it would have created, when I restarted the machine(RHEL6). I executed this command : # blkid /dev/vda5 > /etc/fstab (17 Replies)
Discussion started by: nixhead
17 Replies

5. Ubuntu

Ubuntu encryption and its effects

How will Full Disk encryption effect how open-source software is compiled and run using ubuntu 14.04. Are there alternatives that are recommended? Thank you :). (0 Replies)
Discussion started by: cmccabe
0 Replies

6. What is on Your Mind?

Remove filter effects from downloaded videos?

Does anyone know a way to remove filter effects from videos downloaded from YouTube or elsewhere, preferably with software that runs in Windows 7? Thank you in anticipation. (1 Reply)
Discussion started by: quadphonic
1 Replies
VDAAERL(1)						    Voicetronix Telephony Tools 						VDAAERL(1)

NAME
vdaaerl - Measure the echo-return loss on Voicetronix FXO telephony modules SYNOPSIS
vdaaerl [options] DESCRIPTION
The vdaaerl utility tests the echo-return from a telephone line connected to a Voicetronix FXO module, such as those used on the OpenPCI range of cards. It can scan all available impedance values to find the best match for a particular line. It will wait for an incoming call on the port under test. The calling handset should have the microphone well muted for the duration of the test. A series of tones will be played down the line to determine the ERL in several parts of the audio spectrum. You should avoid creating any other noise on the line while this test is running, or the results may be skewed. If no --impedance is specified, and the --scan option is not used, then the default impedance value (based on the port's country selection) will be used. OPTIONS
The following options are available: --help, -? Show summary of options. --card number Explicitly select the card to test. Default is card 0. --port number Explicitly select the port to test. Default is port 0 of the card being tested. --impedance number Test a particular impedance setting [0 - 15]. --scan Test all available impedances. --playgain db Set the hardware play gain. Values may range from -12.0 to 12.0. --recgain db Set the hardware record gain. Values may range from -12.0 to 12.0. SEE ALSO
proslicerl(1) AUTHOR
Ron Lee, Peter Wintulich, David Rowe, Voicetronix <support@voicetronix.com.au> This manual page was written by Ron <ron@debian.org>, for the Debian project (but may be used by others). VPB driver package Oct 11, 2007 VDAAERL(1)
All times are GMT -4. The time now is 04:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy