LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Perl Skript to change the heading of an sql dump

Posted 08-11-2009 at 04:19 AM by zhjim

Needed to have a programm that would allow me to change the headers of a sql dump.
This is the first draft and far from perfect but does the job.
PHP Code:
#!/usr/bin/perl
use strict;

use 
Fcntl;
my $line;
my $go 10;
my $start;
my $end;

if ( $
#ARGV + 1 != 1 ) {
        
print 'Usage:  trial.pl  new_db_name' "\n";
        exit -
1;
}

my $db $ARGV[0];

open
...
Senior Member
Posted in Uncategorized
Views 1041 Comments 0 zhjim is offline

  



All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
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