Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Jq Command Tutorials for Bash Shell Scripting
  • Table Of Contents Toc
Jq Command Tutorials for Bash Shell Scripting

Jq Command Tutorials for Bash Shell Scripting

By : Narendra Kumar Reddy Polu
close
close
Jq Command Tutorials for Bash Shell Scripting

Jq Command Tutorials for Bash Shell Scripting

By: Narendra Kumar Reddy Polu

Overview of this book

Nowadays, DevOps automation is more into REST API usage, and REST API response is JSON. So, to implement bash shell scripts using REST APIs, you must know how to parse the response of REST API (that is, parse JSON data). Jq is a program developed to filter JSON data. You can consider Jq like sed, awk, or grep program but designed specifically for filtering JSON data. Jq supports filters, conditions, operators, and other language features. While the creation and understanding of JSON data are effortless due to its human-readable format, JSON data parsing is still a very complicated task to achieve if done manually. Instead, you can use programs like Jq to parse JSON data in minutes. In this course, you will see the usage of the Jq command in Bash Shell Scripts, followed by filters and options to work with JSON objects. After that, you will look at the simple usage of the Jq command in Shell Scripts and start working with JSON arrays using the index concept. Next, you will be constructing objects and arrays with and without inputs and the usage of the -n option in Jq Command. Finally, you will study the Jq functions. By the end of this course, you will have learned and gained the requisite confidence to work with the Jq Command using Bash Shell scripting in detail. All the resource files are added to the GitHub repository at: https://github.com/PacktPublishing/Jq-Command-Tutorials-for-Bash-Shell-Scripting
Table of Contents (13 chapters)
close
close
8
Conditional Statements | Simple if| if else | if elif…else
9
Jq Command with Exit Status for Bash Shell Scripting
11
Arithmetic Operations on Numbers (int and float)
12
Creating Bash Array from JSON Array
chevron up
13
Jq Command Usage with Kubectl
Chapter: 12
Creating Bash Array from JSON Array
Icon This video is locked
Icon
Icon
0:00
2.0x
1.5x
1.25x
1.0x
0.5x
caption settings
caption off
Icon Icon
ShowHide Transcripts Icon
CONTINUE WATCHING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Jq Command Tutorials for Bash Shell Scripting
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon