Tag Info

Hot answers tagged

2

There's not really any meaningful formula here; there's just arbitrary rules of thumb that get thrown around. E.g., "The perceived wisdom seems to be that for servers the ratio of Swap to RAM is lower than for PCs." Perhaps that assumes a gargantuan amount of RAM, as servers are more likely to have. But this is still mostly meaningless. It says ...


1

Credit from: http://askubuntu.com/a/451889 Create a script to check status and start if not found: #!/bin/bash if [[ ! "$(/usr/sbin/service mysql status)" =~ "start/running" ]] then /usr/sbin/service mysql start fi Make sure script is executable: chmod +x /path/to/script Finally create a cron to run the script: sudo ...


1

As @Costas pointed out, you are using globbing patterns whereas sed uses BRE regular expressions (or ERE if using sed's -r option). Your command should resemble something like this : sed -i -r 's/-[0-9]+x[0-9]+\.jpg/.jpg/g' myfile.sql Explanation : [0-9] means "any number" (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + means "one or more of the previous atom" (The ...



Only top voted, non community-wiki answers of a minimum length are eligible