Linux command to repeat a string n times

2010-06-17 1 min read Bash

There are more than one situation where you wished that there was a simple way to print a character n number of times. At least I face that quite often, especially when you want to print a menu. I found this post today which has pretty good solution and also the way how it works :
<a href="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times">http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times

\"Enhanced

Change pidgin status from the command line

2010-06-16 1 min read Bash Fedora Linux

$ purple-remote "setstatus?status=away&message=AFK" Thanks for the comment oshazard, i wasn&#8217;t aware of purple-remote existence.

  • <a href="http://www.commandlinefu.com/commands/view/4554/change-pidgin-status">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/unixApe">View all commands by <a href="http://feeds2.feedburner.com/commands/by/unixApe">unixApe

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

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

<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/1/di" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/Ky02xAVnP7w" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status">http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status

Teaching Kids Programming with Free Programming Languages

2010-06-16 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
Teaching Kids Programming with Free Programming Languages Tech Source From Bohol: &#8221;Most of these languages are graphics-based that makes them fun and attractive for young ones or even for adults who are absolute beginner in programming. So enjoy and teach your kids programming with these free programming languages.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV">http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV

wmctrl – window control manager

2010-06-16 0 min read Fedora Linux
\"Blue
Image via Wikipedia

What is <a class="zem_slink freebase/en/wmctrl" title="Wmctrl" rel="wikipedia" href="http://en.wikipedia.org/wiki/Wmctrl">wmctrl?

wmctrl  is  a  command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window manager for information, and it can request that certain window management actions be taken.

Continue reading

Periodically download and use as wallpaper from Flickr in Fedora using Webilder.

2010-06-16 1 min read Fedora

Ever wanted to have wallpaper downloaded from Flickr directly using the tags and then apply them as wallpaper, then the way to go is download Webilder <a href="http://www.webilder.org/static/downloads/Webilder-0.6.3.tar.gz">here. Just do the regular stuff to install the same.

tar xvfz

cd

./configure

make

sudo make install

And then right click on the gnome panel and add the widget. Configure the tags to download and the duration to change the wallpaper and enjoy.

Continue reading

17 Cool firefox tweaks.

2010-06-16 1 min read Fedora Firefox Linux

A very nice article on firefox can be found here. Though written for Ubuntu should be applicable to all distro&#8217;s.

<a href="http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html">http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html

Most of it was done in my machine even before I read the article but good to see all of them together 🙂

List of commands you use most often

2010-06-16 1 min read Bash Learning

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/6MxHiSiINdo/list-of-commands-you-use-most-often">List of commands you use most often

$ history | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot.

  • <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="commandlinefu.com" align="bottom" />

Continue reading
Older posts Newer posts