hamin.se
  • About
  • All posts

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!

Back to Home


© 2024 | Built on Hugo

Twitter Linkedin GitHub