LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2009, 07:15 AM   #1
aidanwhitehall
LQ Newbie
 
Registered: Sep 2002
Posts: 3

Rep: Reputation: 0
Question grep in UnxUtils on Windows XP


Not sure where else to turn for help on this one (as the UnxUtils forum is pretty quiet...)

I'm using UnxUtils on a Windows XP workstation and am struggling with the syntax for grep (FWIW "grep --version" returns 2.5.1).

I'm trying to parse the output from a local printer's status page, and am failing to get lookahead working when piping the value from wget into grep.

This works fine and returns lots of matches:

wget -q -O- "http://10.0.0.99/status" | grep -E Helvetica

However this returns nothing

wget -q -O- "http://10.0.0.99/status" | grep -E Helv(?=etica)

Do lookaheads normally work with grep on the commandline? I'm not sure if the '-E' is correct either (but have tried -e and -G with no more success).

Is there something I'm missing... ? Thanks!
 
Old 06-24-2009, 07:17 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
why don't you get grep from GNU ?
 
Old 06-24-2009, 08:05 AM   #3
aidanwhitehall
LQ Newbie
 
Registered: Sep 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ghostdog74 View Post
why don't you get grep from GNU ?
I was unaware of GnuWin32. Thanks, I'll give it a shot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to understand pipes - Can't pipe output from tail -f to grep then grep again lostjohnny Linux - Newbie 15 03-12-2009 10:31 PM
how to grep multiple filters with grep LinuxLover Linux - Enterprise 1 10-18-2007 07:12 AM
grep output on stdout and grep output to file don't match xnomad Linux - General 3 01-13-2007 04:56 AM
Grep user id + password from WINDOWS NT machine wesleywest Linux - Software 1 01-27-2005 10:47 AM
ps -ef|grep -v root|grep apache<<result maelstrombob Linux - Newbie 1 09-24-2003 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration