关闭。这个问题是off-topic .它目前不接受答案。
想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。
9年前关闭。
Improve this question
阅读 make 的手册页:
`shar' Create a shell archive (shar file) of the source files.
什么是沙尔?
最佳答案
它是一个 shell 归档文件,一个自解压的可执行 shell 脚本,它是一种传送文件归档文件的便捷方式,并且只需运行脚本即可让它们出现。
下面的脚本中显示了一个示例,该示例仅提供了存档中的一个文件,output.txt
:
pax> cat shar.bash
#!/bin/bash
tr '[A-Za-z]' '[N-ZA-Mn-za-m]' >output.txt <<EOF
Uryyb sebz Cnk.
EOF
pax> ./shar.bash
pax> cat output.txt
Hello from Pax.
这是一个相当简单的方法,因为它只提供一个文件,并且根本不压缩它,但它应该给你一个大致的概念。
一个真正的可能会给你一些类似于 tar、gzip 和 uuencode 组合的文件,然后通过 uudecode、gunzip 和 tar 传递原始内容。
关于shell - 什么是 .shar 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13357829/