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.
Thread Tools Display Modes
Old 11th March 2011, 06: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

Attached Images

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

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


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 14:05
I can't finish install due a problem Sam9999 Installation/Configuration 7 17th September 2010 23:33
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 17:26
Internet Explorer won't connect to my server wctaelectronics Server Operation 10 27th October 2008 22:14
site - databases trueshanti Installation/Configuration 20 26th May 2006 02:28

All times are GMT +2. The time now is 10:57.

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