BASH Script - Blank Out CC Details
(ServerLinux) Here's a quick one liner, can't think why anyone would ever have any use for it, but maybe the principle itself could be of use to someone! This will take a file containing listings of 16 digit numbers, i.e. 1234123412341234 and replace it with XXXXX
Update update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 14157 failed: 1142 [UPDATE command denied to user '334187_hdlns_ms5'@'10.187.248.89' for table 'feed'] in [update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 14157]
updated 14157 (Linux Server Security Secrets), inserted 2, updated 0, at 2012-06-01 21:51:55
Articles from: Linux Server Security Secrets (ServerLinux)