test.sh
#!/bin/bash
echo “Script name$0”
echo “The first parameter $1”
echo “The second parameter $2”
echo “The third parameter $3”
echo “The fourth parameter $4”
echo “The fifth parame
test.sh
#!/bin/bash
echo “Script name$0”
echo “The first parameter $1”
echo “The second parameter $2”
echo “The third parameter $3”
echo “The fourth parameter $4”
echo “The fifth parame
The registry is an internal database of Windows, which is a huge tree-like hierarchical database. It records the correlation between the software installed on the computer by the user and each prog
Question requirements Write a greeting program that can output greetings to the user according to the current time of the system when it is executed. Assume that from midnight to noon is morning, n
test.sh:
#!/bin/bash
myUrl=”http://www.google.com span>”
readonly myUrl
myUrl=”http://www.runoob.com span>” Output
bogon:Desktop macname $ ./test.sh
./test.sh: line 4: myUrl: reado
1. Special location variables
About the above related variables introduction , You can also refer to the man manual, execute the command “man bash”, and then search for the keyword “Special P
If there are more than 2 characters
“Hiiiiiii
My friend!!!!!!!”
I need to reduce to
“Fei Yichuan
My friend!!”
Please note that in my language, there are many double-character words.
T
Interactive input and for statement (8-15)
Interactive input
1, read Usage: The read command can define multiple variable values at the same time, and the input content can be used as
Detect installed vim
rpm -qa | grep vi< span style="color: #000000; font-size: 16px;"> Install vim yum -y install vim-enhanced
Replace with vimvi
vi ~/.bashrc #Need to restart or use source to r
See the answer in English> Why is (sizeof(int)> -1) false?
#include
int main(void)
{
printf(“%d”, sizeof(signed int)> -1);
return 0;
} The result is 0(FALSE).
How could this happen?
I am
I have a line and I want to know if there are any embedded single quote characters in it. Using awk, I tried several variations
badix = index($0,”