Posts Categorized ‘Learning’

podcast
Getting your wordpress self hosted stats on your console with bash script update regularly.
Hot:sun Getting your wordpress self hosted stats on your console with bash script update regularly.sun Getting your wordpress self hosted stats on your console with bash script update regularly.sun Getting your wordpress self hosted stats on your console with bash script update regularly.sun Getting your wordpress self hosted stats on your console with bash script update regularly.sun dark Getting your wordpress self hosted stats on your console with bash script update regularly.

Some time back I wrote a blog on how to get your site stats using curl in bash shell. Today we will use the same script to get the stats every few seconds on the terminal on the same line, similar to progress meter.

Read the rest of this entry »

home

CBA0E3ABEB1A7038A3FD2A47BA03BC1B Getting your wordpress self hosted stats on your console with bash script update regularly.

Technorati Tags: bash, script, stat, update, WordPress

3 Comments

help
bash one liner to change/remove test pattern from config file or text file.
Hot:sun bash one liner to change/remove test pattern from config file or text file.sun bash one liner to change/remove test pattern from config file or text file.sun dark bash one liner to change/remove test pattern from config file or text file.sun dark bash one liner to change/remove test pattern from config file or text file.sun dark bash one liner to change/remove test pattern from config file or text file.

Problem:

I had a directory with a lot of config files in the ini file format, i.e. name and value separated by equals. Some/all of these contained some directory names and other values which had to be replaced. But there were other place where I should not not replace them, if there was no exact match. I also needed to have a backup copy of the file that I was modifying. Since the number of files that I needed to change was multiple so was quite difficult to do it without using some script.

Read the rest of this entry »

jobs

CBA0E3ABEB1A7038A3FD2A47BA03BC1B bash one liner to change/remove test pattern from config file or text file.

Technorati Tags: automation, bash, loop, script, sed

4 Comments

Back to top

<< Previous Entries

podcast