Skip to content

Instantly share code, notes, and snippets.

View freiermuth's full-sized avatar

Josh Freiermuth freiermuth

View GitHub Profile
@neilalbrock
neilalbrock / splitmysqldump.pl
Created April 1, 2012 19:39
Split MySQL dump into a file per database
#!/usr/bin/perl -w
#
# splitmysqldump - split mysqldump file into per-database dump files.
use strict;
use warnings;
my $dbfile;
my $dbname = q{};
my $header = q{};
while (<>) {
@goude
goude / Count Characters in Tibco Spotfire String
Last active December 12, 2018 16:37
How do you create a calculated column in Tibco Spotfire to count occurences of a specific character in a string from another column?
Len(RXReplace([Column 1], "[^x]", "", "g"))
Replace x with the character you wish to count.