Thanks to antville.org
Sunday, 2. June 2019
Shell scripting basics

Here are 8 important concepts of Shell scripting that everyone should know.

1) Exit Code Status $?
2) here_doc
3) if_else

if [[ $mystatus = 'No' ]];then
echo "slave down"
else
echo "slave ok"
fi

4) For loop

for i in ls
do
cp $path$i $new_path
done

5) Positional Parameters $1, $2, $#, $@

6) Variables

7) Functions
stop()
(
for socket in {2..9}
do
mysqladmin shutdown $socket
done
)

8) Globbing - t?est [ab] [a-c] [^ab] {b,c,test*}

... Link (8 comments) ... Comment


Online for 6291 days
Last modified: 11/15/19 4:12 PM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
June 2019
SunMonTueWedThuFriSat
1
2345678
9101112131415
16171819202122
23242526272829
30
MarchAugust
Recent updates
Nice Same here. I used
the same product. Thanks! | junk yards near me
by Danielperez123 (11/15/19 4:12 PM)
tellthebell Nice share. But, am
getting an error whenever I setup . So, what should...
by zenvanik (11/12/19 9:22 AM)
great to learn Thanks I
was needing this. As someone who prefers tree service winnipeg...
by TheManofRight (11/11/19 11:26 PM)
Noted. Got to apply
this over our website. Tampa SEO
by brielleluna (11/11/19 5:22 PM)
Is this another kind of
AWS management console that was posted on the other...
by brielleluna (11/11/19 5:19 PM)
sitelinx great work פרסום
בטאבולה
by sitelinxblog (11/9/19 8:36 PM)
Amazing! Thanks for welcoming
us with your great information. Keep it up! https://thesoutherninstitute.com
by Danielperez123 (11/8/19 4:05 PM)
Great Good to know you
have also provided which file type should it be saved....
by brielleluna (11/7/19 5:35 PM)
I will try to
apply them. cheapest seo services
by louishill6427 (11/6/19 9:19 AM)
I use these amazon
products too. Credit Card Processing Companies
by louishill6427 (11/6/19 9:14 AM)
Thanks for sharing how
to convert private to public key. Outbound Lighting
by louishill6427 (11/6/19 9:07 AM)
Thanks for sharing the
link for bookmarklet. Cincinnati lot for sale
by louishill6427 (11/6/19 8:42 AM)
Thanks for sharing the
code. Hvac Tech Support
by louishill6427 (11/6/19 8:37 AM)
Great introduction on what
is python. commercial leasing
by louishill6427 (11/6/19 7:26 AM)
Backup Thanks for the backup
tips. altera supplier
by louishill6427 (11/6/19 7:20 AM)
It is indeed slow.
AccessElite Now
by louishill6427 (11/6/19 7:04 AM)
module Thanks so much for
sharing this module for google search. Monuments lebanon Ohio
by louishill6427 (11/6/19 7:01 AM)
audio visual I've already used
yolo. roofing companies in Northern Kentucky
by louishill6427 (11/6/19 6:33 AM)
Basic Very useful scripting basic.
villa rentals in cabo san lucas
by louishill6427 (11/6/19 6:26 AM)
EBS Thanks for posting this
codes. Cincinnati Channel Letter Signs
by louishill6427 (11/6/19 6:16 AM)
I like marbot alarms
sent through email. LED Headlights
by louishill6427 (11/6/19 6:11 AM)
Thanks for this. best
merchant services
by louishill6427 (11/6/19 6:07 AM)
Headrows Is this applicable to
any headrows? family law attorney columbus ohio
by louishill6427 (11/6/19 5:50 AM)
Notification Yes. I would
like a weekly notification. I will follow the instruction. Jewelry Dayton...
by louishill6427 (11/6/19 5:45 AM)
Amazon Cloud Formation tools These
are the only tools I know. illuminatural 6i review
by louishill6427 (11/6/19 5:35 AM)

RSS feed

Made with Antville
Helma Object Publisher