echo "Usage: `basename $0` $script_parameters"Usage: 到这里都只是字符串,会直接显示成 Usage:`basename $0`这句会先执行,然后把结果返回到这个echo 里面来 basename应该是一个方法,$0是传入到这个shellscript中的第一个参数 script_parameters 另一个变量,放在字符串中,echo时会显示变量的值 ...
basename ./shell_script/ --> shell_script/ $0 执行脚本是的脚本路径及脚本名称 在脚本中,使用basename 获取用户的文件名: basename $0 mail mail: # 查看邮件 -s : 指定邮件标题 mail -s "How are you?" root < /etc/fstab 给root用户发邮件标题为 "How are you?",正文是fstab;这里使用的是输入重...
basename command is mostly used in shell scripts to get the name of the shell script file you are running. Sample shell script code is shown below #!/usr/bin/sh filename=`basename $0` echo $filename
-application/x-shellscript=vim.desktop; -application/x-shockwave-flash=vlc.desktop; -application/x-shorten=org.gnome.Totem.desktop; -application/x-smil=org.gnome.Totem.desktop; -application/x-xpinstall=thunderbird.desktop; -application/x-xzpdf=org.gnome.Evince.desktop; -application/xhtml+xml=fi...