如何创建空的“图标\r”从 shell 脚本获取 .dmg 文件?
从 shell 脚本中,我想为 Mac OS X 磁盘映像 (dmg) 创建空的“Icon\r”文件,以便查找器考虑到 .VolumeIcon.icns 图标文件;控制台不接受该死的 '\r' 字符:
touch Icon\r
ls Icon*
> Iconr
并且在尝试输入 'Icon\r'
、"Icon\r"
等时会发生其他情况,我无法让它接受“\r”作为文件名末尾所需的典型回车符。
知道如何输入吗?
谢谢
From shell script, I would like to create the empty 'Icon\r' file for a Mac OS X disk image (dmg), so as the .VolumeIcon.icns icon file is taken into account by the finder; the damn '\r' character is not accepted from the console:
touch Icon\r
ls Icon*
> Iconr
and other things happen when trying to type 'Icon\r'
, "Icon\r"
etc., I can't achieve to make it accept "\r" as the typical carriage return required at the end of the file name.
Any idea how to type it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我假设文件名应该是五个字符,最后一个是回车符。在 bash 或 zsh 中:
或者您可以在 shell 中输入回车符:
touch Icon
Ctrl+V Ctrl +M 输入 。I assume the file name should be five characters, the last one being a carriage return. In bash or zsh:
Or you can type the carriage return in the shell:
touch Icon
Ctrl+V Ctrl+M Enter .在 bash 中,您可以打开引号并输入“Icon,然后在下一行(您的提示符应该是 > 字符)关闭引号。
In bash, you can open your quotes and type "Icon, then on the following line (your prompt should be a > character) close the quotes.