Typing long commands in bash? Use fc instead! - Tue, Jan 28, 2014
Instead of:
while : ; do curl "http://google.com/1" -I; sleep 5; done
Use:
fc
and write the command as you would a script in your favourite text editor (vi I presume):
while :
do curl "http://google.com/" -I
sleep 5
done
Save, and watch it run!