Shell Programming

1. Variable

A=8

echo $A

2. Passing parameters

echo “$0 $1 $2”

echo “$*”

echo “[email protected]”

echo “$#”

3. Operator

S=$[(2+3)*4]

4. Judgment

= String Compare

-lt less thanless than

-le less thanequal

-eq equals equal

-gt greater than great than

-ge greater than< span style="font-family: 宋体;">equalgreant than equal

-ne notequalnot equal

if [conditional judgment formula];then < /span>

Program

fi

5. Loop

for j in “[email protected]”

do

echo “The num is $j”

Done

for (( initial value;loop control conditions; variable changes))

do

Program

done

while [conditional judgment]

do

Program

done

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5517 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.