In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Functions must be defined before they are used.
The function runs in the current environment, sharing variables in the script that calls it, and the function allows you to pass parameters to the function by assigning a value to the position parameter. Local variables can be created within the function body using the local qualifier.
If you use the exit command in a function, the script exits. If you want to return to the place where the function was called, use the return command.
The return statement of the function returns the exit status of the last command executed by the function.
Use the built-in command export-f to export the function to the child Shell.
If the functions are saved in another file, you can use the source or dot command to load them into the current script.
Functions can be called recursively, and there are no call restrictions.
You can use declare-f to find the functions defined in the login session. Function prints all function definitions in alphabetical order. This list of definitions can be long and need to be viewed using a text reader more or less. If you want to see only the function name, use the declare-F statement.
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: 262
*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.