bash

Unable to run .sh and .ps1 file with Python

Unable to run .sh and .ps1 file with Python Question: I learned that you can write scripts and run multiple commands by executing a .sh or .ps1 file in Bash and PowerShell respectively. However, when I run my files I get the same error (both in Bash and PowerShell) and I am unable to understand …

Total answers: 1

Gnuplot: line 0: no previous plot

Gnuplot: line 0: no previous plot Question: I am trying to save the Gnuplot plot in PNG that I get with my SDR and a tool named rtl_power_fftw. This command displays my plot on the screen but I want to save it in PNG: rtl_power_fftw -f 900M:950M -n 10 -b 512 -q | sed -u …

Total answers: 1

How to feed multi-line grep output to xargs with multiple parameters from each line

How to feed multi-line grep output to xargs with multiple parameters from each line Question: I have a CSV file to grep from, where the number of columns may vary, e.g.: $ grep -v ‘Coba’ ETFs.csv | grep ‘Sector’ CAPE,Ossiam Shiller Barclays Cape Europe Sector Value TR,EUPE,FWB EUPB1,Ossiam Shiller Barclays Cape Global Sector Value,EUPB,FWB For …

Total answers: 2

Add a column from a Pandas dataframe to a new dataframe [Solved]

Add a column from a Pandas dataframe to a new dataframe [Solved] Question: So I have a graph which I use to get the optimal path using Dijkstra. The path is returned as a list of index. I want to extract that path to a csv, but adding the coordinates to be able to visualize …

Total answers: 1

Bash check if file was modified within date range

Bash check if file was modified within date range Question: I have a script that checks to see if a cert, (.cer file), is within 14 days of expiring, and if it is, it will archive the old cert request, generate a new one, and send it to the middleware team. The thought occurs though, …

Total answers: 1

Extract a value from an array of data

Extract a value from an array of data Question: I get such an array of data [U8EUGGG1C32144101336_gulu, V5EUHHG1P12100100418_89011337751, V5EUHHG1P22111000028_89011337751] How I can extract only this value "89011337751" and write it to a variable ? Is it possible to do it with the bash, powershell or other scripts? Asked By: Vitaliy Kuzmenko || Source Answers: This …

Total answers: 1