LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02:06 AM   #16
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191

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, 03:37 AM   #17
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 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
Open Source Consulting | Domain Registration