Linux: Sed a file into itself!
I love sed. It can be complex at times, but my favorite use of sed is: $ sed -i “s/FIND_THIS/REPLACE_WITH_THIS/g” /path/to/file
I love sed. It can be complex at times, but my favorite use of sed is: $ sed -i “s/FIND_THIS/REPLACE_WITH_THIS/g” /path/to/file
A pretty neat command that copies one database into another database from the command line in one simple command: $ mysqldump -u USER -pPASS FROM_DATABASE | mysql -u USER -pPASS TO_DATABASE Nice and easy! 🙂
I’ve been very fond of a plugin named new user approve written by Picklewagon. It allows you to open registration, and over-rides the default registration process of automatically allowing the user in and sending you ( the admin ) an e-mail — along with the newly registered user. I’ve also been digging deep into WordPress multisite […]