1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*d38c30c0SXin LI# $File: commands,v 1.61 2019/10/30 03:16:43 christos Exp $ 4b6cee71dSXin LI# commands: file(1) magic for various shells and interpreters 5b6cee71dSXin LI# 6b6cee71dSXin LI#0 string/w : shell archive or script for antique kernel text 7b6cee71dSXin LI0 string/wt #!\ /bin/sh POSIX shell script text executable 8b6cee71dSXin LI!:mime text/x-shellscript 9b6cee71dSXin LI0 string/wb #!\ /bin/sh POSIX shell script executable (binary data) 10b6cee71dSXin LI!:mime text/x-shellscript 11b6cee71dSXin LI 12b6cee71dSXin LI0 string/wt #!\ /bin/csh C shell script text executable 13b6cee71dSXin LI!:mime text/x-shellscript 14b6cee71dSXin LI 15b6cee71dSXin LI# korn shell magic, sent by George Wu, gwu@clyde.att.com 16b6cee71dSXin LI0 string/wt #!\ /bin/ksh Korn shell script text executable 17b6cee71dSXin LI!:mime text/x-shellscript 18b6cee71dSXin LI0 string/wb #!\ /bin/ksh Korn shell script executable (binary data) 19b6cee71dSXin LI!:mime text/x-shellscript 20b6cee71dSXin LI 21b6cee71dSXin LI0 string/wt #!\ /bin/tcsh Tenex C shell script text executable 22b6cee71dSXin LI!:mime text/x-shellscript 23b6cee71dSXin LI0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 24b6cee71dSXin LI!:mime text/x-shellscript 25b6cee71dSXin LI0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable 26b6cee71dSXin LI!:mime text/x-shellscript 27b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 28b6cee71dSXin LI!:mime text/x-shellscript 29b6cee71dSXin LI 30b6cee71dSXin LI# 31b6cee71dSXin LI# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 32b6cee71dSXin LI0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable 33b6cee71dSXin LI!:mime text/x-shellscript 34b6cee71dSXin LI0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 35b6cee71dSXin LI!:mime text/x-shellscript 36b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 37b6cee71dSXin LI!:mime text/x-shellscript 38*d38c30c0SXin LI0 search/1 #!/usr/bin/env\ zsh Paul Falstad's zsh script text executable 39*d38c30c0SXin LI!:mime text/x-shellscript 40*d38c30c0SXin LI 41b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 42b6cee71dSXin LI!:mime text/x-shellscript 43b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 44b6cee71dSXin LI!:mime text/x-shellscript 45b6cee71dSXin LI0 string/wt #!\ /bin/nawk new awk script text executable 46b6cee71dSXin LI!:mime text/x-nawk 47b6cee71dSXin LI0 string/wt #!\ /usr/bin/nawk new awk script text executable 48b6cee71dSXin LI!:mime text/x-nawk 49b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/nawk new awk script text executable 50b6cee71dSXin LI!:mime text/x-nawk 51b6cee71dSXin LI0 string/wt #!\ /bin/gawk GNU awk script text executable 52b6cee71dSXin LI!:mime text/x-gawk 53b6cee71dSXin LI0 string/wt #!\ /usr/bin/gawk GNU awk script text executable 54b6cee71dSXin LI!:mime text/x-gawk 55b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable 56b6cee71dSXin LI!:mime text/x-gawk 57b6cee71dSXin LI# 58b6cee71dSXin LI0 string/wt #!\ /bin/awk awk script text executable 59b6cee71dSXin LI!:mime text/x-awk 60b6cee71dSXin LI0 string/wt #!\ /usr/bin/awk awk script text executable 61b6cee71dSXin LI!:mime text/x-awk 6240427ccaSGordon Tetlow0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text 63b6cee71dSXin LI 64b6cee71dSXin LI# AT&T Bell Labs' Plan 9 shell 65b6cee71dSXin LI0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable 66b6cee71dSXin LI 67b6cee71dSXin LI# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 68b6cee71dSXin LI0 string/wt #!\ /bin/bash Bourne-Again shell script text executable 69b6cee71dSXin LI!:mime text/x-shellscript 70b6cee71dSXin LI0 string/wb #!\ /bin/bash Bourne-Again shell script executable (binary data) 71b6cee71dSXin LI!:mime text/x-shellscript 72b6cee71dSXin LI0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable 73b6cee71dSXin LI!:mime text/x-shellscript 74b6cee71dSXin LI0 string/wb #!\ /usr/bin/bash Bourne-Again shell script executable (binary data) 75b6cee71dSXin LI!:mime text/x-shellscript 76b6cee71dSXin LI0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable 77b6cee71dSXin LI!:mime text/x-shellscript 78b6cee71dSXin LI0 string/wb #!\ /usr/local/bash Bourne-Again shell script executable (binary data) 79b6cee71dSXin LI!:mime text/x-shellscript 80b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 81b6cee71dSXin LI!:mime text/x-shellscript 82b6cee71dSXin LI0 string/wb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data) 83b6cee71dSXin LI!:mime text/x-shellscript 845f0216bdSXin LI0 string/wt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable 855f0216bdSXin LI!:mime text/x-shellscript 86b6cee71dSXin LI 87b6cee71dSXin LI# PHP scripts 88b6cee71dSXin LI# Ulf Harnhammar <ulfh@update.uu.se> 89b6cee71dSXin LI0 search/1/c =<?php PHP script text 9040427ccaSGordon Tetlow!:strength + 30 91b6cee71dSXin LI!:mime text/x-php 92b6cee71dSXin LI0 search/1 =<?\n PHP script text 93b6cee71dSXin LI!:mime text/x-php 94b6cee71dSXin LI0 search/1 =<?\r PHP script text 95b6cee71dSXin LI!:mime text/x-php 96b6cee71dSXin LI0 search/1/w #!\ /usr/local/bin/php PHP script text executable 97b6cee71dSXin LI!:strength + 10 98b6cee71dSXin LI!:mime text/x-php 99b6cee71dSXin LI0 search/1/w #!\ /usr/bin/php PHP script text executable 100b6cee71dSXin LI!:strength + 10 101b6cee71dSXin LI!:mime text/x-php 10248c779cdSXin LI# Smarty compiled template, https://www.smarty.net/ 103b6cee71dSXin LI# Elan Ruusamae <glen@delfi.ee> 1043e41d09dSXin LI0 string =<?php 1053e41d09dSXin LI>5 regex [\ \n] 1063e41d09dSXin LI>>6 string /*\ Smarty\ version Smarty compiled template 10720f8619dSXin LI>>>24 regex [0-9.]+ \b, version %s 108b6cee71dSXin LI!:mime text/x-php 109b6cee71dSXin LI 110b6cee71dSXin LI0 string Zend\x00 PHP script Zend Optimizer data 111b6cee71dSXin LI 112b6cee71dSXin LI0 string/t $! DCL command file 113b6cee71dSXin LI 114b6cee71dSXin LI# Type: Pdmenu 11548c779cdSXin LI# URL: https://packages.debian.org/pdmenu 116b6cee71dSXin LI# From: Edward Betts <edward@debian.org> 117b6cee71dSXin LI0 string #!/usr/bin/pdmenu Pdmenu configuration file text 118a5d223e6SXin LI 119a5d223e6SXin LI# From Danny Weldon 120a5d223e6SXin LI0 string \x0b\x13\x08\x00 121a5d223e6SXin LI>0x04 uleshort <4 ksh byte-code version %d 122