Introduction to Bash Scripting
Bash scripting allows you to build analytics pipelines in the cloud and work with data stored across multiple files.
Kurs Kostenlos Starten4 Stunden13 Videos43 Übungen30.826 LernendeLeistungsnachweis
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.Trainierst du 2 oder mehr?
Versuchen DataCamp for BusinessBeliebt bei Lernenden in Tausenden Unternehmen
Kursbeschreibung
Bash is a concise, superfast, and robust scripting language for data and file manipulation. It’s a vital skill for building analytics pipelines in the cloud, favored by Linux users to work with data stored across multiple files.
In this course, we’ll guide you through the basics of Bash scripting. We begin with an introduction to Bash script structures, including inputting arguments and outputting results. You’ll then work through data structures, such as variables and arrays, and control statements, including loops and conditionals. You’ll then put what you’ve learned into practice, by creating your own Bash functions and scheduling automated scripts to run like clockwork with cron.
Für Unternehmen
Trainierst du 2 oder mehr?
Erhalten Sie für Ihr Team Zugriff auf die vollständige DataCamp-Bibliothek mit zentralisierten Berichten, Zuweisungen, Projekten und mehr- 1
From Command-Line to Bash Script
KostenlosSave yourself time when performing complex repetitive tasks. You’ll begin this course by refreshing your knowledge of common command-line programs and arguments before quickly moving into the world of Bash scripting. You’ll create simple command-line pipelines and then transform these into Bash scripts. You’ll then boost your skills and learn about standard streams and feeding arguments to your Bash scripts.
Introduction and refresher50 xpExtracting scores with shell50 xpSearching a book with shell50 xpYour first Bash script50 xpA simple Bash script100 xpShell pipelines to Bash scripts100 xpExtract and edit using Bash scripts100 xpStandard streams & arguments50 xpUsing arguments in Bash scripts100 xpUsing arguments with HR data100 xp - 2
Variables in Bash Scripting
Master the bread and butter of Bash scripts—variables! In this chapter, you’ll learn how to create basic string and numeric variables, and perform calculations on these variables. You’ll also learn about the magic of a shell-within-a-shell (shell-ception), opening up huge opportunities for advanced scripting.
- 3
Control Statements in Bash Scripting
Life isn't always linear and neither should your Bash scripts. In this chapter, you’ll take your Bash scripts to the next level by learning control statements. You’ll learn the differences between FOR, WHILE, IF, and CASE statements and how to use them in your Bash scripts. Armed with these new tools, you’ll be ready to create more advanced Bash scripts with conditional logic.
IF statements50 xpSorting model results100 xpMoving relevant files100 xpFOR loops & WHILE statements50 xpA simple FOR loop100 xpCorrecting a WHILE statement50 xpCleaning up a directory100 xpCASE statements50 xpDays of the week with CASE100 xpMoving model results with CASE100 xpFinishing a CASE statement50 xp - 4
Functions and Automation
Give your Bash scripts a powerful new addition by building useful functions to process data and variables. In this last chapter, you will learn the structure of functions in Bash, how to use functions to help automate frequent tasks, and program your scripts to run on schedule without needing to even lift a finger.
Basic functions in Bash50 xpUploading model results to the cloud100 xpGet the current day100 xpArguments, return values, and scope50 xpA percentage calculator100 xpSports analytics function100 xpSumming an array100 xpScheduling your scripts with Cron50 xpAnalyzing a crontab schedule50 xpCreating cronjobs100 xpScheduling cronjobs with crontab100 xpThanks and wrap up50 xp
Für Unternehmen
Trainierst du 2 oder mehr?
Erhalten Sie für Ihr Team Zugriff auf die vollständige DataCamp-Bibliothek mit zentralisierten Berichten, Zuweisungen, Projekten und mehrMitwirkende
Voraussetzungen
Introduction to ShellAlex Scriven
Mehr AnzeigenSenior Data Scientist @ Atlassian
Was sagen andere Lernende?
Melden Sie sich an 14 Millionen Lernende und starten Sie Introduction to Bash Scripting Heute!
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.