I'm trying to determine the encoding of a shell script. The following "file" command returns "application/x-shellscript". Is this the actual encoding? I was expecting a standard encoding such as "utf-8" or "ascii". What am I missing?
file --mime test.sh
test.sh: application/x-shellscript
EDIT: I moved the file over to my macbook and it worked:
file --mime test.sh
test.sh: text/x-shellscript; charset=us-ascii
尝试--mime-encoding
开关:
file --mime-encoding test.sh
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.