简体   繁体   English

解压缩后,该zipfile如何将消息打印到控制台?

[英]How does this zipfile print a message to my console when it's unzipped?

I downloaded a font from FontSpace.com 我从FontSpace.com下载了一种字体

and unzipped it using unzip my_font.zip 并使用unzip my_font.zip

The following was then printed: 然后打印以下内容:

Archive:  kimberly-geswein_just-realize.zip

  _____           _   ____                       
 |  ___|__  _ __ | |_/ ___| _ __   __ _  ___ ___ 
 | |_ / _ \| '_ \| __\___ \| '_ \ / _` |/ __/ _ \
 |  _| (_) | | | | |_ ___) | |_) | (_| | (_|  __/
 |_|  \___/|_| |_|\__|____/| .__/ \__,_|\___\___|.com
                           |_|                   

    Visit us at http://www.fontspace.com for more
    information on this font, or for thousands of 
    more fonts!


  inflating: JustRealize.ttf         
  inflating: JustRealizeBold.ttf     
 extracting: KGFonts-TOU.txt         

How was this achieved? 这是如何实现的? I don't mean the unzipping, I mean the printing of the advertisement. 我不是指解压缩,而是指广告的印刷。

On the command line you can do this with command zipnote which generally comes with the zip command. 在命令行上,您可以使用zipnote命令(通常与zip命令一起提供)来执行此操作。

From the manpage: 从联机帮助页:

Example:
     zipnote foo.zip > foo.tmp
     ed foo.tmp
     ... then you edit the comments, save, and exit ...
     zipnote -w foo.zip < foo.tmp

The trick is to put the "comment" at the end of that .tmp file that is read back into the .zip by the zipnote command. 技巧是将“注释”放在该.tmp文件的末尾,该文件由zipnote命令读回到.zip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何访问某些电子邮件,并打印特定邮件的邮件正文? - How to access some email, and print a specific mail's message body? 如何使我的脚本真正执行,而不仅仅是打印到控制台? - How to make my script actually execute, rathern than just print to console? crontab如何在控制台中打印消息? - How can crontab print messages in console? 使用grep命令,我可以打印与命令匹配的数据,但是当数据不可用时如何打印错误? - Using grep command, I can print the data that match with my command but how to print an error when data is not available? 如何将Qt希伯来语QString打印到控制台? - How to print Qt Hebrew QStrings to the console? 如何在系统调用中打印到控制台(终端) - How to Print to Console (Terminal) inside a system call 为什么打印出来的元组中只有一个可以工作,但是打印出来就可以了? - Why does only one of my return tuple work but is fine when I print it out? 将模块的printk打印到我自己的日志文件中 - Making my module's printk's print to my own logfile 为什么我的Erlang启动脚本在控制台上运行,但从init系统(sysvinit,upstart,systemd)运行时不起作用? - Why does my Erlang boot script work from console but does not work when run from init system (sysvinit, upstart, systemd)? 如何在控制台中显示 printk() 消息? - How can I show printk() message in console?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM