Excerpted from: ABS_Guide translator Yang chunmin Huang Yi
When will Shell scripts not be used?
- Resource-intensive tasks, especially when efficiency needs to be considered (such as sorting and hash)
- Mathematical operations that require processing of large tasks, especially floating-point operations, precise operations, or complex arithmetic operations (in this case, C ++ or FORTRAN is generally used for processing)
- Cross-platform porting is required (C or Java is generally used)
- Complex applications, when structured programming is required (variable type check, function prototype, and so on)
- Key task applications that affect the overall system.
- For tasks with high security requirements, for example, you need a robust system to prevent intrusion, cracking, and malicious destruction. The project is composed of various parts of the dependencies of the scheduler.
- Large-scale File Operations
- Multi-dimensional array support
- Support for data structures, such as linked lists or data structures
- GUI to be generated or operated
- Operating system hardware directly required
- I/O or socket interfaces are required
- Interface that requires the use of libraries or legacy code
- Private, closed-source applications (shell scripts place code in text files and can be seen all over the world)
If your application meets any of the above requirements, consider a more powerful language-perhaps Perl, Tcl, Python, ruby -- or a higher-level compilation language such as C/C ++, or Java. even so, you will find that using shell to prototype your application is also very useful in the development process.