YoVDO

Writing a Script Together With Bash, JQ, and the BTP CLI

Offered By: SAP via YouTube

Tags

SAP Courses Software Development Courses Bash Courses jq Courses

Course Description

Overview

Explore the process of writing a script using bash, jq, and the btp CLI in this 57-minute tutorial from SAP. Learn how to leverage JSON format output from the btp CLI, create a new script file, explore role collections JSON with JQ playground, and pipe role collection lists into fzf. Discover alternative methods for selecting role collections, add role template app IDs to outputs, and understand the proper use of xargs with functions and scripts. Gain practical insights into building useful scripts around the btp CLI while covering topics such as asynchronous fixers, escaped newlines, and Unix-style parsing techniques.

Syllabus

Welcome, introduction, and Devtoberfest related news
JSON format output from btp CLI is more reliable and predictable
A brief exploration of my btp CLI related functions and scripts
Picking some data from the btp CLI to play with
Creating a new script file listroles
Exploring the role collections JSON with the jqte JQ playground script
Piping the role collection list into fzf
Short digression into trailing spaces, asynchronous fixers, and escaped newlines
Looking at an alternative way to select a role collection
Reflecting on how easy it was to build a script around the btp CLI to create something useful
Adding the role template app ID to the output too, in a Unix way, so that it can be easily parsed further down the pipeline
Finishing with a digression on the use of xargs with functions no! and scripts yes!


Taught by

SAP Developers

Related Courses

Rapid Deployment of SAP Solutions
SAP Learning
让我们开始了解SAP的创新企业解决方案 (Get to know SAP’s Innovative Enterprise Solutions)
SAP Learning
ABAP Development for SAP HANA
SAP Learning
Get to Know SAP’s Innovative Enterprise Solutions
SAP Learning
Facilitating ERPsim: Running Successful Business Simulation Games with ERPsim (Partner Course)
HEC Montréal via SAP Learning