Ask the experts to help write a shell script file that can be executed on Android phones
Source: Internet
Author: User
Ask the experts to help compile a shell script file that can be executed on Android phones-General Linux technology-Linux technology and application information. The following is a detailed description. Ask the experts to help write a shell script file that can be executed on the Android phone for the following purposes:
Check whether/system/lib/a. son exists.
If yes, rename a. so in the same directory to a. sof, and then rename a. son to a. so.
Close script
If no, rename a. so in the same directory to a. son, and then rename a. sof to a. so.
Close script
In addition, could you add another command to change the file name of the script itself after the above script task is completed and close the script? if feasible, please write the code as well, for example, the script now name HDR-n.sh is changed to HDR-f.sh or vice versa.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service