How to create the empty 'Icon\r' file for a .dmg from shell script? How to create the empty 'Icon\r' file for a .dmg from shell script? unix unix

How to create the empty 'Icon\r' file for a .dmg from shell script?


I assume the file name should be five characters, the last one being a carriage return. In bash or zsh:

touch $'Icon\r'

Or you can type the carriage return in the shell: touch Icon Ctrl+V Ctrl+M Enter .


In bash, you can open your quotes and type "Icon, then on the following line (your prompt should be a > character) close the quotes.