Linux Shell???????25??
???????????? ???????[ 2015/4/29 15:51:42 ] ????????Linux shell???
????Q:18 ??shell????У???β?????? ?
??????test?????????????????????????÷????±??
????Q:19 ??shell????У????д????? ?
??????????????????????????????????????????ι???????????????#????????????£?
????#!/bin/bash
????# This is a command
????echo “I am logged in as $USER”
????Q:20 ????? shell ???????????????????
??????read???????????????????ü???????????read??????????????????????????????С????????£?
????# vi /tmp/test.sh
????#!/bin/bash
????echo ‘Please enter your name’
????read name
????echo “My Name is $name”
????# ./test.sh
????Please enter your name
????LinuxTechi
????My Name is LinuxTechi
????Q:21 ?????????????????????? ?
??????“unset”????????????????????????????????????????
????# unset <Name_of_Variable>
????Q:22 ?????????????? ?
????????????????????????????
???????expr????# expr 5 + 2?? 2.???????????????????$[ ???? ]?????磺test=$[16 + 4] ; test=$[16 + 4]
????Q:23 do-while?????????? ?
??????do-while?????????while??????????????????????????LCTT ????????????????Ρ?????????????do-while??????
????do
????{
????statements
????} while (condition)
????Q:24 ??shell?????ζ??庯???? ?
???????????????????????顣????????????飬???????????????????ú??????????????С?????????????
????$ diskusage () { df -h ; }
????Q:25 ?????shell????????BC??bash???????? ?
????????????и??????shell????????bc??
????variable=`echo “options; expression” | bc`
??????

???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44