ack on solaris – grep recursively.

2010-06-25 2 min read Solaris

<span style="background-color: #ffffff;">Some days back I posted an article on ack <a href="http://blog.amit-agarwal.co.in/2009/08/24/more-powerful-grep-ack/" target="_blank">here. Today I was working on Solaris 9 and the default grep installed on the system does not have the &#8221;-r&#8221; option to search recursively. So, you know for all the time I had to keep using find with grep to work with directories recursively. This was something similar to the one below:

<span style="background-color: #ffffff;">find . -type f -exec grep amit {} \;

Continue reading

GIMP 2.6 released

2010-06-25 1 min read Photo

GIMP released version 2.6 with some major improvements. I have not yet downloaded it and plan to do it in few days time.

<a href="http://gimp.org/release-notes/gimp-2.6.html">Release notes of 2.6 version.

This version has made some changes in the GUI too and looks quite impressive in the screenshots.

Heres one of them from the GIMP site.

<a href="http://blog.amit-agarwal.com/wp-content/uploads/gimp.org/screenshots/gnome-1280x800-fresh-start.jpg"><img title="GIMP UI" src="http://blog.amit-agarwal.com/wp-content/uploads/gimp.org/screenshots/gnome-1280x800-fresh-start.jpg" alt="GIMP UI" width="1280" height="800" />

Check it out 🙂

rpmsave and rpmnew files.

2010-06-25 1 min read Linux

When upgrading an rpm based Linux System, all of us would have seen &#8221;*.rpmsave&#8221; or &#8221;*rpmnew&#8221; files being created. These are the config files in the rpm that rpm utility thinks should be overwritten (creates a *.rpmsave for the earlier file) or should not be overwritten (create *.rpmnew with the new file).

If you ever wondered what to do with these files then you can use this small script that would show the diff between the two files and you can decided which to keep or which to delete.

Continue reading

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

2010-06-25 1 min read Bash Fedora Learning Linux

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.

Continue reading

Visualizing system performance data

2010-06-25 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

<font SIZE="6"><a HREF="http://feedproxy.google.com/~r/Command-line-fu/~3/jjk4Htw9rvo/visualizing-system-performance-data">Visualizing system performance data

$ vmstat 2 10 | awk 'NR > 2 {print NR, $13}' | gnuplot -e “set terminal png;set output 'v.png';plot '-' u 1:2 t 'cpu' w linespoints;" draw `vmstat ` data using gnuplot

  • <a HREF="http://www.commandlinefu.com/commands/view/3581/visualizing-system-performance-data">View this command to comment, vote or add to favourites
  • <a HREF="http://feeds2.feedburner.com/commands/by/Sunng">View all commands by <a HREF="http://feeds2.feedburner.com/commands/by/Sunng">Sunng

<a HREF="http://www.commandlinefu.com"><img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" ALIGN="bottom" ALT="commandlinefu.com"/>

by David Winterbottom (<a HREF="http://codeinthehole.com">codeinthehole.com)

Continue reading

How to Create Mystery in Your Photos

2010-06-25 1 min read Photo

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/photographyblog/~3/2MubCS6LvHE/">How to Create Mystery in Your Photos

Large format photographer David Ward explores how to create one of the essential ingredients of his photography – mystery.

<a href="http://www.photographyblog.com/articles/how_to_create_mystery_in_your_photos/">Read the article »

<img src="http://blog.amit-agarwal.com/wp-content/uploads/feeds.feedburner.com/~r/photographyblog/~4/2MubCS6LvHE" border="0" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/photographyblog/~3/2MubCS6LvHE/">http://feedproxy.google.com/~r/photographyblog/~3/2MubCS6LvHE/

Older posts Newer posts