Typing the current date automaticly in any application with a key binding.

$ xvkbd -xsendevent -text $(date +%Y%m%d) I don\’t want to waste time to all the time type the current date. I have set this snippet in my kde shortcuts with meta+l. All the window managers have key-bindings AFAIK. That works in all softs, CLI or GUI

\"commandlinefu.com\"

by David Winterbottom (codeinthehole.com)

\"\"
\"\"

\"\"

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/Qci94Fwtil0/typing-the-current-date-automaticly-in-any-application-with-a-key-binding.

\"Reblog

Paste clipboard is bash or shell scripts with modification.

Today I had a issue where I wanted to paste the clipboard to a shell script after removing the spaces. So, I went hunting for a way to do this. Finally I came up with this:

sudo yum install xclip

Then you can paste the clipboard content using \”xclip -o\”. So now the problem is reduced to selecting the required info and doing :

xclip -o |sed \’s/ //g\’

or

xclip -o|tr -d \’ \’

Linux command to repeat a string n times – Super User

I was working on something and needed to output the string n times. I have required this even to print a line with \’-\’ or \’=\’ but this time I badly wanted it in bash. So I searched google and found this:

printf \”Amit Agarwal%.0s\” {1..5}

Explanations and other examples: http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times

\"Enhanced