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 UNIX operating system (Eunice) is a powerful multi-user, multi-tasking operating system that supports multiple processor architectures. According to the classification of the operating system, it is a time-sharing operating system. It was first developed by KenThompson, Dennis Ritchie and Douglas McIlroy in 1969 Developed in AT&T’s Bell Labs in the year. At present, its trademark rights are owned by the International Open Standards Organization, and only UNIX systems that conform to a single UNIX specification can use the name UNIX, otherwise it can only be called UNIX-like (UNIX-like)
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
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
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,”