LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-28-2011, 03:06 AM   #16
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988

Quote:
Yes I tried with doublequotes. Not worked.
Seems to work just fine for me:
Code:
$ cat file
drwxr-xr-x  2 root root 4096 Feb  2 11:23 79
drwxr-xr-x  2 root root 4096 Feb 12 11:11 8
$ a=Feb
$ b=2
$ egrep "$a +$b" file
drwxr-xr-x  2 root root 4096 Feb  2 11:23 79
 
2 members found this post helpful.
Old 05-28-2011, 04:37 AM   #17
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by grail View Post
Seems to work just fine for me:
Code:
$ cat file
drwxr-xr-x  2 root root 4096 Feb  2 11:23 79
drwxr-xr-x  2 root root 4096 Feb 12 11:11 8
$ a=Feb
$ b=2
$ egrep "$a +$b" file
drwxr-xr-x  2 root root 4096 Feb  2 11:23 79
Yes it worked correctly, there was another place where I was doing wrong. Now its ok..
 
  


Reply

Tags
egrep, regular expression


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
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 10:59 AM
Do we have any chance of calling user space callback function from kernel space? ravishankar.g Linux - Newbie 1 09-22-2009 08:14 PM
how to call socket prog code written in user space from kernel space???HELP kurt2 Programming 2 07-15-2009 10:56 PM
Searching for space scbops Linux - Hardware 3 09-26-2008 02:29 PM
LXer: Worms in space: NASA confirms International Space Station infected LXer Syndicated Linux News 0 08-28-2008 10:40 AM


All times are GMT -5. The time now is 09:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration