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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
grep question tim-bobby UNIX for Dummies Questions & Answers 4 10-05-2007 11:58 AM
Question about GREP Adriel UNIX for Dummies Questions & Answers 16 03-22-2007 08:03 AM
Another grep question kingdbag UNIX for Dummies Questions & Answers 6 10-27-2006 01:56 AM
grep & sed question der Kopf Shell Programming and Scripting 1 11-22-2004 04:49 AM
Grep question eloquent99 UNIX for Dummies Questions & Answers 4 02-20-2003 10:49 AM

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 12-10-2007
saurabhsinha23 saurabhsinha23 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 10
Grep question.

Hi,

I am executing the below command.

grep ".UPDATE" file1.txt | grep -v MQQUEUE > Myprog1

The expected output is all lines in file1.txt which have the string ".UPDATE" and dont contain the string MQQUEUE.

However, the output which I am getting is just searching for the string "UPDATE" instead of ".UPDATE".

Please advise where I am going wrong.

TIA.
Saurabh
  #2 (permalink)  
Old 12-10-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 921
'.' means the same thing as 'any one character' in a regular expression. Escape the '.' by either putting a \ in front of it or using single quotes instead of double quotes.
  #3 (permalink)  
Old 12-10-2007
saurabhsinha23 saurabhsinha23 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 10
Smile

Thanks for your response. It worked.
  #4 (permalink)  
Old 12-11-2007
amit.jais
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
ftp access to specific user

how to give ftp access to specific user as root.
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 06:58 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