Course Overview

This course is for anyone who works with JSON on the command line or uses Bash Shell Scripts.

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 (i.e., parsing JSON Data).

JQ is a program developed to filter JSON data. You can consider jq as a sed, awk, or grep-like program designed specifically for filtering JSON data. JQ supports filters, conditions, operators, and other language features. While the creation and understanding of JSON data are very simple 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.

The necessary resources for this course are in the "Resources" section of Video 1.1. You can also access them through this direct link - https://github.com/ec-council-learning/Jq-Command-Tutorials-for-Bash-Shell-Scripting

What You Will Learn

  • Learn the basics of Jq
  • Explore how to Parse (read and write) JSON Data with Jq Command
  • Learn how to use Jq Command in Bash Shell Scripting
  • Find out how to pretty print json in the command line
  • Learn to use different type of filter on JSON Data
  • Discover how to use jq select function with iterator filter and map function

Program Curriculum

  • Install Jq command, Verify the Version and Get Help from Command Line
  • Public REST APIs to Practice with Jq Command
  • Basic Understanding of Jq Input and Outputs
  • $7 Million Cybersecurity Scholarship by EC-Council
  • Chapter 1 Quiz

  • Identity Filter
  • Different Ways to Pass JSON Data as an Input to Jq Command
  • Field Filter
  • How to Get Raw String for a Given Key or Property?
  • Field Filter, Comma, and Raw String Combination
  • Chapter 2 Quiz

Jq Command Usage to Read userName and Password from REST API

  • Shell Script
  • Chapter 3 Quiz

  • Basic Concepts to Work with Arrays
  • JSON Array Slicing using Jq Command
  • Chapter 4 Quiz

  • Constructing Objects and Arrays with and Without Inputs
  • Constructing null, number, strings and boolean with and Without Inputs
  • Indentation with --tab and Compact Output with -c Option
  • Chapter 5 Quiz

  • Introduction to Functions and Pipes (To Combine Filters and Functions)
  • join and range Functions
  • has Function
  • map Function
  • select Function
  • Chapter 6 Quiz

env Object

Usage of Export in Linux for env Object

  • Simple Shell Script
  • --arg Option to Work with OS Environment and Custom Variables
  • Functions: tonumber, tostring, ascii_upcase & ascii_ downcase
  • How to use Variables with Filters & Others (Function, Conditional etc.)
  • Chapter 7 Quiz
Load more modules

Instructor

Narendra P

Narendra is an IT Professional with 7+ years of experience in different Domains. Very much interested in learning new technologies and teaching. He believes that the best way to learn by doing it in a fun way. He has good practical knowledge of automation with different Scripting languages like Shell Scripting, Python Scripting, and YAML Scripting. His online classes focus on providing high-quality documentation with practical knowledge. Hands-on experience in learning new technology that makes learning really interesting.

Join over 1 Million professionals from the most renowned Companies in the world!

certificate

Empower Your Learning with Our Flexible Plans

Invest in your future with our flexible subscription plans. Whether you're just starting out or looking to enhance your expertise, there's a plan tailored to meet your needs. Gain access to in-demand skills and courses for your continuous learning needs.

Monthly Plans
Annual Plans
Save 20% with our annual plans!

Pro

Ideal for continuous learning, offering extensive resources with 600+ courses and diverse Learning Paths to enhance your skills.

$ 499.00
Billed annually or $59.00 billed monthly

What is included

  • 700+ Premium Short Courses
  • 50+ Structured Learning Paths
  • Validation of Completion with all courses and learning paths
  • New Courses added every month
Early Access Offer

Pro +

Experience immersive learning with Practice Labs, CTF Challenges, and exclusive EC-Council certifications for comprehensive skill-building.

$ 599.00
Billed annually or $69.00 billed monthly

Everything in Pro and

  • 800+ Practice Lab exercises with guided instructions
  • 150+ CTF Challenges with detailed walkthroughs
  • New Practice Labs and Challenges added every month
  • 3 Official EC-Council Essentials Certifications¹ (retails at $897!)
    Exclusive Bonus with Annual Plans

¹This plan includes Digital Forensics Essentials (DFE), Ethical Hacking Essentials (EHE), and Network Defense Essentials (NDE) certifications. No other EC-Council certifications are included.

Related Courses

1 of 8