one liner

Pygmentize Styles

2020/07/26

I have recently started using pygmentize for looking at my code in terminal. A very good and native way to do this is to use pygmentize. If you do not know about pygmentize then […] Highlight …

libvirt- Create virtual machine with text console only interface

2019/05/27

virt-install is an amazing tool to create VMs. If you have created a config file (Kickstart file – ks.cfg), then its only one line un-attended install. If you are using this on remote host with ssh …

Get the information on all the rpms installed on the system

2010/07/23

Here’s a one-liner to get the info on all the packages installed on your system. […] rpm -qa –info |tee All_rpms_Info […] This is what it does, when you query the rpm database …

Solaris one liners

2010/06/29

http://www.unixguide.net/sun/sunoneliners.shtml […] Unix/Solaris: One-Liners Source: http://www.kevlo.com/~ebs/unix_commands.txt […] Listed here are a bunch of unix commands. […] …

remove/replace text/path in config file.

2010/06/25

Lot of times I end up changing a particular text in config file to some other text. And when I have to do it for multiple files, all files having the text in multiple places, I end up opening the …

create SQL-statements from textfile with awk

2010/03/08

<td> <div class="text codecolorer"> $ $ awk \'{printf "select * from table where id = %c%s%c;\\n",39,$1,39; }\' inputfile.txt </div> </td> </tr> …

Execute mysql command from shell

2010/02/04

phpMyAdmin is a very slow application if you want to execute a query on your database. If you know the name of the database then any GUI tool is an overhead. So I have written a one liner shell script …

shell — one liner to selectively change case

2010/01/07

Today I had a hard time, I had a herculian task of converting the case of file to upper case. Well that&#8217;s not difficult :), I know. What made it difficult was the fact that not the whole …

Get list of git repositories from command line.

2009/10/04

Earlier I had posted a small blog on teamgit. The problem still is that you have to manually go to the git.kernel.org page and get the list of the repo&#8217;s that you can download. How about a …

Script to generate a html file with link to all files in directory

2009/09/26

ls -1 |awk -F&#8221;.&#8221; '{print &#8221; &#8221;,$2,&#8221;.&#8221;,$3,&#8221; […] And if you want to do it recursively ls -1R |awk -F&#8221;.&#8221; …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it