Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th March 2011, 05:37
sams sams is offline
Junior Member
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help in script - Getting table name from a text file

hhhhhhhhhh
Attached Images
 

Last edited by sams; 14th March 2011 at 06:32.
Reply With Quote
Sponsored Links
  #2  
Old 12th March 2011, 10:37
rodobrist rodobrist is offline
Member
 
Join Date: Sep 2010
Posts: 30
Thanks: 10
Thanked 2 Times in 2 Posts
Default

I could probably do it in php, i dont know if this helps you

but isnt it simply

step 1 get text inbetween for and *** via regex /for[^C]+(\*\*\*)/
(the capital C is to stop the next Current)

step 2 get text between first space and second space /\s[a-z0-9]+\s/

step 3 trim

As i said, could give you exact commands for php, but im no linux scripter
Reply With Quote
Reply

Bookmarks

Tags
egrep, python, regular expression, script, search

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rkhunter report Captain Installation/Configuration 6 10th October 2010 13:05
I can't finish install due a problem Sam9999 Installation/Configuration 7 17th September 2010 22:33
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
Internet Explorer won't connect to my server wctaelectronics Server Operation 10 27th October 2008 21:14
site - databases trueshanti Installation/Configuration 20 26th May 2006 01:28


All times are GMT +2. The time now is 14:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.