Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-24-2009, 07:15 AM   #1
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- "" | grep -E Helvetica

However this returns nothing

wget -q -O- "" | 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
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
LQ Newbie
Registered: Sep 2002
Posts: 3

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 AM.

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