Vim can be called in the script, but you can only play with the parameters. . The return value of the script can be obtained using $? I don’t understand what you want to do. Is it just to open a file for editing with vim? Shell allows you to check information online. You can search a lot on Baidu and Bing. .
What you mean by this is that after the script is executed, you can enter vim to edit the files you created in the script, right? You no longer need to enter vim on the command line
I don’t know if I can help LZ
New file
Edit the file, copy the following code into the wt file, save and exit
Note: The last line specifies the exit status of the shell script. The status value of 123 is only for demonstration
Give permission
Execute
View execution status
I guess what you need is
sed
andawk
.Vim can be called in the script, but you can only play with the parameters. .
The return value of the script can be obtained using
$?
I don’t understand what you want to do. Is it just to open a file for editing with vim?
Shell allows you to check information online. You can search a lot on Baidu and Bing. .
What you mean by this is that after the script is executed, you can enter vim to edit the files you created in the script, right? You no longer need to enter vim on the command line