I'm trying to write a bash script that validates that composer.lock is up to date with composer.json before attempting to run composer install. I have tried som
Is there any way to make the script: diff <(echo 'hello') <(echo 'hello-2') work, as currently it fails with error in Dart when run using Process.run or P
As part of my graduate research, I collect field data that gets entered into CSV files daily. I have all my data within a private GitHub repository. My technici
Disclaimer: this happens on macOS (Big Sur); more info about the context below. I have to write (almost did) a script which will replace images URLs in big text
I have data in a file test.txt in below format. abc,123,mno,xyz,1234 mno,123,abc,rpt,pqr,2345 xyz,456,uyt,rtp,rto, I want to capture the 3rd field which I am a
I have a script: #!/bin/bash git log -1 | grep -w '^commit' | cut -d ' ' -f2 | git show | grep -w '^index' | cut -d ' ' -f2 > tmp_out while read -r arg do
I use the following command to output PID and FD related to CLOSE-WAIT sockets. sudo ss -p | grep CLOSE-WAIT | awk '{ print $7 }' | sed 's/,pid=/ /' | sed 's/,f
I’m doing; createdb -O dan -h 127.0.1.1 -p 5432 -U dan -w testdb but it throws me: fe_sendauth: no password supplied Then I tried to remove -w and it a
Normally, when using ffmpeg, you define a name for the "pass" information to be stored in a file when enconding videos with 2 (or more) passes, e.g.: ffmpeg -i
I'm trying to find patterns from one file in another file. The pattern in file one looks something like this: ENSG00000203875.13 ENSG00000262691.1 ENSG000002549
Im trying to write a regex function in bash where the first and third thing in the list are the same and the second and fourth thing in the list are the same. g
I wrote the below script to check expiry age of users on psql #!/bin/bash echo "" echo "Performing User Expiry Check" echo "" CONTAINER_ID=$(docker p
I am attempting to curl multiple urls in a bash command. Eventually I will be curling a large number of Urls so I am using xargs to use multiple processes to sp
I am currently working on RNA-Seq data, and I have a directory containing the forward and the reverse sequences of a number of samples. I want to run tools such
I have a bash script from which I want to access /dev/tty, but only when it's available. When it's not available (in my case: when running my script in GitHub A
i want to generate 10 random number between 1 and 100 and store them in an array #!/bin/bash for ((i=0; i<10; i++)) do done
I have a file with three columns. I would like to extract rows with top two values in column 3 for each unique value in column 2. cat file.list run1/xx2/x2c1.tx
I'm trying to use pm2 deploy production update to serve my NextJs app on remote server. I've have already installed yarn locally and also on remote server. It s
I am using a raspberry pi4 with 32bit Raspbian to display some webpages. I have a script to open 2 webpages, one on each monitor. The end of the script selects
I have the following two files in a directory: Dockerfile FROM debian WORKDIR /app COPY start.sh /app/ CMD ["/app/start.sh"] start.sh (with permissions 755 u