In this post we are sharing tips to remove html tags by using sed command. Today, while working on migration of site from wordpress to static site, I used lots of sed command. I am sharing some sed command which are always successful for me. In html tags generally the tags are coded in this […]
Linux
sed : find the pattern (keyword) and delete the line from file
sed is stream line editor utility in unix operating systems.sed is a line-oriented text processing utility: it reads text, line by line, from an input stream or file, into an internal buffer called the pattern space. Each line read starts a cycle. To the pattern space, sed applies one or more operations which have been […]
vi : Edit file without opening it
In this post I am sharing the trick to edit file without opening it. To achieve this task we will use vi editor. vi is very well known,popular,ultimate and awesome editor and by default available in all Unix/Linux operating system. Syntax: vi -c ‘COMMAND|wq’ /path/of/file Example: We will replace a keyword with new keyword in […]
mysqldump: Got error: 145: Table ‘./DB/table-name’ is marked as crashed
It was time to take backup of mysql database of my server. I run the command mysqldump with some options and found the error, ” mysqldump: Got error: 145: Table ‘./DB/table-name’ is marked as crashed and should be repaired when using LOCK TABLES ” I have seen this error before but not written on this […]
PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0
It was shiny morning and at the time of taking tea at home. I opened my laptop and login into my server. Recently, I changed the apache MPM to worker mode. Running php-fpm and mod_fcgi to run the WordPress based blog. After a few days of Worker apache implementation, I checked the php-fpm log directory […]
Install Jekyll on Ubuntu 14.04 LTS
Jekyll is a static site generator, ruby based free software. It is written by Tom Priston Werner , GitHub’s cofounder. In this post we will install the latest jekyll 2.0 version. Whereas the steps are applicable to previous version(Jekyll 1.0) also By using jekyll you can create awesome blogs, writing the post and pages in […]
Recent Comments