In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
$0 gets the file name of the currently executed shell script, including the script path if the execution script contains a path
$n gets the nth parameter value of the currently executed shell script, nq1.9, which indicates the filename of the script when n is 0; if n is greater than 9, it is enclosed in curly braces, such as ${10}, followed by arguments separated by spaces
$# get the total number of parameters followed by the currently executed shell script
$* get all parameters passed by the current shell script without quotation marks, which are the same as $@. If you add double quotation marks to $*, such as "$*", all parameters are treated as a single string, which is equivalent to "$1 $2 $3".
$@ gets all parameters passed by the current shell script without quotation marks and is the same as $*: if you add double quotation marks to $@, such as "$@", all parameters are treated as different independent strings, equivalent to "$1"$2"$3"." This is the best way to pass multiple parameters to other programs because it preserves any white space embedded in each parameter. When "$@" and "$*" are enclosed in double quotation marks, there is a difference between them, and there is no difference between them without double quotation marks.
$? Gets the return value of the last instruction executed by the current shell script
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.