Replace USB_DEVICE with the device name of your usb stick.
WARNING - BE CAREFUL TO SPECIFY THE CORRECT DEVICE AS IT WILL BE OVERWRITTEN AND YOU WILL LOSE ALL DATA.
For me USB_DEVICE=sdb (give the device not the partition e.g. sdb not sdb1)
cat ubuntu-12.04-desktop-amd64.iso > /dev/USB_DEVICE