我正在写这段代码:
awk -F'=' '!/^$/{arr[$1]=$2}END{for (x in arr) {print x"="arr[x]}}' 1.txt 2.txt
Run Code Online (Sandbox Code Playgroud)
此代码忽略空行,但我也想忽略以#(注释)开头的行.
知道如何添加多个模式吗?
cat global_features_script.sh
.child1_script.sh
.child2_script.sh
function svn_credentials
{
echo -n "Enter the svn username and press [ENTER]: " > /dev/tty
read svn_username
echo -n "Enter the svn commit message and press [ENTER]: " > /dev/tty
read svn_message
echo -n "Enter your svn password and press [ENTER]: " > /dev/tty
read -s svn_password
}
if [ a == b]
then
echo "a is equal to be b"
else
echo "a is not equal to b"
fi
function exit_error
{
echo " There …Run Code Online (Sandbox Code Playgroud)