Flickr Link on the blog.

2008-09-19 1 min read Uncategorized

I have managed to install the plugin to display my flickr photos on the blog page. Link is <a href="http://amit-agarwal.co.in/wordpress/flickr/album/72157601656654651/photo/1231634023/flowers-dscf1435jpg.html">http://amit-agarwal.co.in/wordpress/flickr

Linux awk command

2008-09-15 2 min read Linux

Have you ever had a column-oriented text file, similar to a spreadsheet, but the columns weren't in the order you wanted? For instance, suppose you
had the following information in a file named "checkbook.orig":

COST         DATE            BALANCE
10.00         040198           1000.00
20.00         040298             980.00
30.00         040298             950.00

    The information is good, but you'd prefer to have the DATE column first, followed by the COST information in the second column, and the BALANCE column third.

Continue reading

parse and paste text

0001-01-01 1 min read Bash

Lot of times, I copy the text but before pasting want to remove a word or make some other changes or add “wget” to the URL, quite common. So, I came up with this alias

replace='echo $(xclip -i)|sed 's/text//'|xclip -o'

and this depends on xlip, which you can install with

 

dnf install xclip
Newer posts