I want to let xdotool
type the current date automatically and wrote this bash script as a first try:
#!/bin/bash
STR="Hello World!"
xdotool type $STR
Unfortunately, it already fails at this point. It just types ... something ... Something like "<[<[<" or "H[ll==]l{₁". Why is this? How do I make it type a string or the current date (format: YYYY-MM-DD
, so today is 2016-01-06
)?
~/.bashrc
e.g. to~/.bashrc.bak
, copy a fresh.bashrc
from/etc/skel
to~/
, start a new Bash instance (exec bash
) and try again. Does that still happen?.bashrc
in my home folder and the one in/etc/skel
have the sha256sum6fec775ff07e8424bbd774f8d6659dadfca37fd77ee66e2b9db92e3d045273ba
. So it doesn't work. My.bashrc
file isn't even modified.