Results for bash
Using the following bash script: #!/bin/bash export SSLPROTOCOL="-all +TLSv1.2" export SSLCIPHERSUITE="HIGH:!aNULL:!MD5:!3DES:!CAMELLIA:!AES128" # S...
I have a bash script which has 4 elements, and I want to loop over the last 2. So I tried this: #!/usr/bin/env bash arg1=$1 arg2=$2 arg3=$3 arg4=$4 li...
I have a command that returns a number from 0 to n, and would like to catch that number and use as the exit code of the command itself. I was able to ...
I have a bash script that runs multiple ansible-playbooks. eg.before encryption ansible-playbook check_patch_applied.yml --extra-vars="target=123 patc...
I am writing a shell script to run a terminal command 10 times with the section "mid" repeating for i in [1, 10]. intro="0:R:1:6,0:R:1:7,0:R:1:8,0:R:1...
I have a bash script which currently checks for a python script called miner_nbeats.py and executes it if it isn't already running. This is my script ...
I am trying to pass an array index and filename to a python script bu tI just can't get it to work: #!/bin/bash #SBATCH --job-name=test #SBATCH --outp...
I have the following link from my local deployment: https://localhost/internal-repo/test-tools/local-repo/docker-image-internal-1.2-dirty.tgz I want t...
Using the gracebat utility of xm-grace package I am using the following command in my bash script to plot multiple line graphs and load the legend cor...
I'm trying to do a pretty simple pattern match, but am getting hung up of escapes or specific special characters. I'd like to match a branch name like...
Using multiple receivers to monitor HFDL traffic I'd like to create a start script for each of my receivers. The dumphfdl tool needs quite a few param...
I have thousands on many lines in a text file. Some consist of 2 lines, some have 1 line, as seen below: 1 00:01:18,479 --> 00:01:20,514 Dr. Oppenheim...
The following python requirement file defined more than 500 packages, and each package has a " == " and then the version string. # comment string pyth...
I'm trying to run this inline script: Pat="myPat" B64Pat=$(echo -n "$Pat" | base64) git -c http.https:.extraheader="AUTHORIZATION: basic $B64Pat" subm...
I want to periodically search for the existence of all files on my system matching a specific name, delete them, and then afterwards if any were found...
I'm trying to apply a complex logic for removing old backups. Ideally, I'd like to only have backups up to 3 weeks (up to 3 weeklies, 7 dailies +-). I...
I have a couple of large files (~1Gb) of such structure: fooA iug9wa fooA lauie fooA nwgoieb fooB wilgb fooB rqgebepu fooB ifbqeiu ... fooN ibfiygb fo...
I want a simple linux program to create 6 child process using a for loop and capture each of the child PID in array. The problem is if I assign the co...
I am trying to get a list of mirrors from https://mirrors.slackware.com/mirrorlist/ . I have a regex statement that gets the list of all of the server...
I'm recreating Bash in C, and I'm trying to figure out what argument does the command get with empty quotes. I'm executing commands with execve. I not...
I'm running a Bash script on Windows Git Bash that uses docker exec to set config values in my Shopware container: docker exec -d $SHOPWARE_CONTAINER_...
My json file is as follows. This is a sample file. { "DocumentIncarnation": 1, "Events": [ ] } { "DocumentIncarnation": ...
how to do transfer this bash curl in python code. piece of code what i want remake in python: response=$(curl -i -H "Content-Type: application/json" "...
I have a script that automatically creates a local Kubernetes cluster (for development purposes), installing a bunch of applications including Keycloa...
conda () { \local cmd="${1-__missing__}" case "$cmd" in (activate | deactivate) __conda_activate "$@" ;; (install | update | u...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?