Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet202/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   198   199   200   201   202   203   204   205   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

standard output
 (
stdout
), 
standard error
 (
stderr
), and 
standard input
 (
stdin
) in the previous chapter. We'll use standard input again here, 
when we capture input to store it as a variable. Try this command for example:
read age
When you run this command, you'll just be brought to a blank line, with no 
indication as to what you should be doing. Go ahead and enter your age, and then 
press 
Enter
. Next, run this:
echo $age
In a script, you would want to inform the user what they should be entering, so you 
would probably use something similar to these commands:
echo "Please enter your age"
read age
echo "Your age is $age"
We've discussed standard input in the previous chapter, and we can see it in action 
again here as we capture input from the user and store it in a variable.


Boosting Your Command-line Efficiency

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   198   199   200   201   202   203   204   205   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish