no been able to read the output

I’m not able to read the output from the cat/etc/issue and use it to check if you are using the tested distro for one of my tools #!/bin/bash cat /etc/issue read distro echo $distro if [[ "$distro" = "Debian GNU/Linux bookworm/sid \n \l" ]]; then echo "You are using Debian" else echo "you are not… Read More no been able to read the output

PowerShell Script: replace mutiple strings in a json file. Foreach methood

New guy in the world of power shell scripts. I need to replace 100+ variables with new values in a BIG .json file Following the JSON example [ { "_id": "631b3375030cafa9b47ebf06", "index": 0, "guid": "cf39106c-7afa-497a-a0bb-c4ac925f1a2a", "isActive": true, "balance": "$2,446.24", "picture": "http://placehold.it/32×32", "age": 37, "eyeColor": "green", "name": "Angel Jenkins", "gender": "female", "company": "EQUITAX", "email": "angeljenkins@equitax.com", "phone":… Read More PowerShell Script: replace mutiple strings in a json file. Foreach methood

Failed to execute SQL script statement – Missing index for constraint 'students_ibfk_1' in the referenced table

I want to write sql script for integration test in my small service in spring. I am using MySQL. I have the script below: drop table if exists students_enrolled_to_courses; drop table if exists students; drop table if exists courses; CREATE TABLE students_enrolled_to_courses ( student_id varchar(32), course_id varchar(32) ); CREATE TABLE students ( id VARCHAR(32), name… Read More Failed to execute SQL script statement – Missing index for constraint 'students_ibfk_1' in the referenced table

Print array value without brackets in Python

So, I have an array value like this "Items": [ "*.abc.com", "*.xyz.me" ] with print(Items) it’s returning [‘*.abc.com’, ‘*.xyz.me’] but, I want to print everything without brackets like ‘*.abc.com’, ‘*.xyz.me’ Followed some way, but those are returning different not exactly what I want. >Solution : what about this? t = [ "*.abc.com", "*.xyz.me" ] t… Read More Print array value without brackets in Python