LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-16-2009, 03:30 AM   #1
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Rep: Reputation: 15
grep command and quotes


Hey all,

I feel really stupid to ask this question but how can I grep on the following string?

lang_elements['opties_tijdslimiet']['header']

Already thnx in advance

Leon
 
Old 12-16-2009, 03:44 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
What do you wish to grep out of the string?
 
Old 12-16-2009, 03:57 AM   #3
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
Oh sorry for the confusion,

I meant that I want to find: lang_elements['opties_tijdslimiet']['header'] in php files
 
Old 12-16-2009, 04:43 AM   #4
denis1314
LQ Newbie
 
Registered: Nov 2003
Location: Geneva
Distribution: suse
Posts: 17

Rep: Reputation: 1
Quote:
Originally Posted by metalenkist View Post
Hey all,

I feel really stupid to ask this question but how can I grep on the following string?

lang_elements['opties_tijdslimiet']['header']

Already thnx in advance

Leon
try grep "ang_elements\['opties_tijdslimiet'\]\['header'\]" *
it works for me
 
1 members found this post helpful.
Old 12-16-2009, 06:32 AM   #5
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
thank you very much that worked
 
  


Reply


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
Bach command wrapper that can handle quotes? Geneset Programming 5 06-22-2009 12:26 PM
cd command doesn't work in script with more than two arguments in quotes vipinchauhan LinuxQuestions.org Member Intro 5 05-02-2009 12:20 AM
shell script: how to insert a command into quotes alekone Linux - General 4 01-12-2009 09:56 AM
same find command not working in bash script, quotes? QuakerOatz Linux - Software 1 07-14-2003 01:04 PM
Quotes in command line expression afshin Programming 4 02-24-2003 08:27 AM


All times are GMT -5. The time now is 06:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration