Packt
Jq Command Tutorials for Bash Shell Scripting

通过 Coursera Plus 获取 10,000 多门课程的 Accessibility

Packt

Jq Command Tutorials for Bash Shell Scripting

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

5 小时 完成
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

5 小时 完成
灵活的计划
自行安排学习进度

您将学到什么

  • Recall Jq command syntax and its installation process.

  • Differentiate between various Jq functions, filters, and their appropriate use in scripts.

  • Assess the effectiveness of Jq command in handling JSON data across different environments like REST APIs and Kubernetes.

  • Construct complex JSON queries and outputs using Jq in Bash shell scripting.

要了解的详细信息

可分享的证书

添加到您的领英档案

作业

7 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

该课程共有13个模块

In this module, we will lay the foundation for using the Jq command in Bash shell scripting. You will learn about the essential prerequisites, get familiar with Jq's core concepts, and explore how to install it on your system. Additionally, we will discuss using public REST APIs for practice and understanding Jq input and output handling.

涵盖的内容

6个视频1篇阅读材料

In this module, we will dive into the core filters and options used in Jq. You will learn how to use the identity filter, explore different ways of passing JSON data, and apply the field filter for specific data extraction. We will also cover how to obtain raw string values for given keys and how to combine various filters for more complex tasks.

涵盖的内容

5个视频

In this module, we will focus on applying Jq commands within shell scripts to interact with REST APIs. You will learn how to use Jq to extract sensitive information like usernames and passwords from API responses and integrate this functionality into your shell scripts for automation and data processing.

涵盖的内容

1个视频1个作业

In this module, we will explore working with JSON arrays using the Jq command. You will learn the basic concepts of arrays, how to slice them to extract specific elements, and how to combine slicing with other Jq filters for more complex tasks in data manipulation.

涵盖的内容

2个视频

In this module, we will focus on constructing different JSON data types such as objects, arrays, null, numbers, strings, and booleans using Jq. You will learn how to create these structures both with and without inputs, and how to control output formatting using indentation and compact options for different use cases.

涵盖的内容

3个视频

In this module, we will introduce you to Jq functions and how to use pipes to combine them effectively. You will explore key functions such as join, range, has, map, and select, and learn how to apply them to real-world JSON data for efficient manipulation and filtering.

涵盖的内容

5个视频1个作业

In this module, we will explore how to work with OS environment and custom variables in Jq. You will learn how to manage variables using the env object, employ the -arg option, and use functions like tonumber and tostring for data conversion. Additionally, you will see how to integrate variables into filters and conditionals for dynamic JSON manipulation.

涵盖的内容

4个视频

In this module, we will cover how to use conditional statements in Jq for more advanced data filtering and decision-making. You will learn how to apply if, if-else, and if-elif-else constructs to manipulate JSON data based on conditions, creating flexible and powerful processing logic.

涵盖的内容

1个视频

In this module, we will explore how the Jq command's exit status can be used in Bash shell scripting. You'll learn how to interpret these exit statuses, incorporate them for effective error handling, and automate decision-making processes in your scripts based on Jq's success or failure.

涵盖的内容

1个视频1个作业

In this module, we will explore string operations using Jq. You will learn how to concatenate multiple strings, as well as encode and decode string data. These skills will be essential for manipulating and formatting string values within JSON structures efficiently.

涵盖的内容

2个视频

In this module, we will focus on performing arithmetic operations on integers and floating-point numbers using Jq. You will learn how to apply arithmetic operators and integrate these calculations into your JSON processing tasks.

涵盖的内容

1个视频1个作业

In this module, we will demonstrate how to create a Bash array from a JSON array using Jq. You will learn how to transfer JSON data into Bash variables and integrate these arrays into shell scripts for dynamic and automated data processing.

涵盖的内容

1个视频

In this module, we will explore how to use Jq with Kubernetes by integrating it with kubectl commands. You will learn how to filter and extract data from Kubernetes resources and automate workflows for efficient Kubernetes management.

涵盖的内容

1个视频3个作业

位教师

Packt - Course Instructors
Packt
1,269 门课程298,440 名学生

提供方

Packt

从 Data Management 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题