GREP_COLORS – change the colors in the GREP output.

2019-04-22 4 min read bash Linux
Today we will look at the variable GREP_COLORS. This variable determines the colour that is used with the grep command. You can look at the man page of the grep command to see what the various options mean. Here is the excerpt from the man command: GREP_COLORS Specifies the colors and other attributes used to highlight various parts of the output. Its value is a colon-separated list of capabilities that defaults to ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36 with the rv and ne boolean capabilities omitted (i. Continue reading

more clients for mpd.

2013-12-26 1 min read Fedora Linux
Here are some more clients that you can use with mpd. sudo yum install mpd mpc qmpdclient.x86_64 gmpc.x86_64 sonata.x86_64 mpd is :: Music Player Daemon (MPD) is a flexible, powerful, server-side application for playing music. Through plugins and libraries it can play a variety of sound files (e.g., OGG, MP3, FLAC, AAC, WAV) and can be controlled remotely via its network protocol. It can be used as a desktop music player, but is also great Continue reading

pkgwat -search packages for Fedora.

2013-08-23 1 min read Fedora
pkgwat is a nice utility to search the fedora packages websearch. Description : Pronounced "package WAT", pkgwat is a fast CLI tool for querying : the fedora packages webapp. : : : You can make its search even better by helping us tag packages. : And to search for a package, you can use :: pkgwat search pkgwat -h # get help on package. Related articles pkgwat.cli 0.8 Enabling Cisco WebEx in Fedora 19 Fedora Release Party F19, Venezuela

viewvc – serve current directory in web interface.

2013-02-18 1 min read Fedora
Here is the description of viewvc: ViewVC is a browser interface for CVS and Subversion version control repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions. Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output. Continue reading

vim mappings for multiple files.

2012-08-06 1 min read Vim Tips
If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use. map :N map :n And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this: Continue reading

C program to get the ascii string from a string

2012-07-25 1 min read C Programs
Example diagram of the printf function in the C programming language (Photo credit: Wikipedia) Lot of times, you would like to get the complete string in hex or ascii format and if you are one of them then this is something that will be helpful for you 🙂 Example output: lp-amita[d=~/bin]> ./ascii aamit String – aamit, Length – 5 String : aamit Hex : 0x61616d6974 Dec : 9797109105116 And the source code: Continue reading

Music players on Linux – the poor mans random song player.

2012-07-20 1 min read Fedora Learning Linux
If you have more applications running on your system then your system can handle them then you know what I mean when I say that the Music Players take a lot of CPU. Otherwise harmless, but when you are doing too many things, then lot of times you would feel that probably stopping the Music player might help. But then Linux is all about alternatives. So, there is a command line player called mpg123, which does not use so much CPU. Continue reading
Older posts