Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK Beginning Linux Programming, 3rd Edition
This is the forum to discuss the Wrox book Beginning Linux Programming, 2nd Edition by Richard Stones, Neil Matthew, Alan Cox; ISBN: 9780764543739
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning Linux Programming, 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 23rd, 2005, 12:48 PM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default grep e$ words2.txt doesn't work

Does anyone know why the command grep e$ words2.txt (shown on page 68) doesn't work? I know than it is supposed to print out all lines in words2.txt which end with e but for some reason it doesn't.

I have tried grep e\$ words2.txt and grep -E 'e$' words2.txt but these don't work either.

Any suggestions? This is really starting to bug me.

  #2 (permalink)  
Old December 12th, 2005, 02:46 PM
Registered User
 
Join Date: Nov 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Made a mistake forgot to use the following vi commands in order to change download files to unix format:

:set filename=unix
:wq

The files were previously msdos format(why?)

:)



Similar Threads
Thread Thread Starter Forum Replies Last Post
grep-search for text within files, within folders crmpicco Linux 2 September 1st, 2007 10:23 AM
grep, sort with pipe BrendonMelville Linux 1 October 25th, 2006 11:46 AM
DATE within txt box alannoble Excel VBA 1 December 22nd, 2004 12:36 PM
Getting a search txt box to work JJ Access VBA 4 October 23rd, 2003 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.