The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with GREP. syndex Shell Programming and Scripting 2 07-11-2007 01:44 PM
Grep Problem avadhani UNIX for Dummies Questions & Answers 8 06-23-2005 02:58 PM
grep problem asal_email2 UNIX for Dummies Questions & Answers 4 06-22-2005 08:49 PM
grep problem svennie UNIX for Dummies Questions & Answers 5 11-08-2004 04:29 AM
Grep problem odogbolu98 Shell Programming and Scripting 3 02-18-2003 03:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-27-2004
lesstjm lesstjm is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 59
Question Grep Problem

I have a large file that I am grepping to find a certain string.


grep 'C:\Data\Directory\Test.txt' test.txt


It can not find it even though I know it is in there . I know that there is a problem with the backslashes but I can't get it to work. I tried

grep 'C:/\Data/\Directory/\Test.txt' test.txt

but it did not work???
  #2 (permalink)  
Old 10-27-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Change grep 'C:/\Data/\Directory/\Test.txt' test.txt to
grep 'C:\\Data\\Directory\\Test.txt' test.txt
  #3 (permalink)  
Old 10-27-2004
lesstjm lesstjm is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 59
Thanks

That worked. Thanks
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0