| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Bastian Balthazar Bux | Date: | October 3 2005 9:46pm |
| Subject: | Re: Table names with periods | ||
| View as plain text | |||
Chance Ellis wrote: [snip] > of CREATE TABLE entries. I then import those files with a cron script into > mysql. This is where I am looking to convert IP address into something [snip] There is a world of possibilities at this point, one is this: sed \ --expression='s/@@@NEEDTOREPLACETHIS\([0123456789]\).\([0123456789]\)\.\([0123456789]\)\.\([0123456789]\)*NEEDTOREPLACETHIS@@@/\1_\2_\3_\4/' \ SAVEDFILENAME \ | mysql -ublabla -psecret dbname You can do quite everyting from a cron script, also create sql query from normal syslog logs.
| Thread | ||
|---|---|---|
| • Table names with periods | Chance Ellis | 28 Sep |
| • Re: Table names with periods | SGreen | 28 Sep |
| • Re: Table names with periods | Martijn Tonies | 28 Sep |
| • Re: Table names with periods | Chance Ellis | 28 Sep |
| • Re: Table names with periods | Martijn Tonies | 28 Sep |
| • Re: Table names with periods | Martijn Tonies | 28 Sep |
| • Re: Table names with periods | Chance Ellis | 28 Sep |
| • Re: Table names with periods | Patrick | 28 Sep |
| • Re: Table names with periods | Chance Ellis | 28 Sep |
| • Re: Table names with periods | Martijn Tonies | 28 Sep |
| • Re: Table names with periods | Octavian Rasnita | 28 Sep |
| • Re: Table names with periods | Patrick | 3 Oct |
| • Re: Table names with periods | SGreen | 3 Oct |
| • Re: Table names with periods | Chance Ellis | 3 Oct |
| • Re: Table names with periods | Jasper Bryant-Greene | 3 Oct |
| • Re: Table names with periods | Jerl Simpson | 3 Oct |
| • Re: Table names with periods | Bastian Balthazar Bux | 3 Oct |
| • Re: Table names with periods | Chance Ellis | 4 Oct |
| • Re: Table names with periods | Patrick | 4 Oct |
