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`
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11