92,911
questions
0
votes
0
answers
22
views
Input file specified two times
I am using shell in Jupyter with Python programming Language. When I use to prepare a dataset, I fail to complete it on sorting by column and case sensitive.
The line is like this:
!head -n 5 $...
0
votes
1
answer
39
views
pass variable number of arguments to python from shell script
I have a very simple shell script which accepts 2 arguments after some processing pass these 2 arguments to python code. like below
arg1=$1
arg2=$2
#some processing...
python3.6 abc.py $arg1 $arg2
...
0
votes
0
answers
17
views
busybox_glob to run linux command xargs
I am trying to run xargs command in windows via 'busybox_glob.exe'
find . -name test.c | c:/sw/test/build/busybox_globe.exe xargs c:/src/sw/test/clang-format.exe -i -style=file:C/src/sw/.clang-format
...
2
votes
7
answers
84
views
Filter CSV rows where specific fields are null or non-null
I'm trying to filter lines in a CSV file based on two specific conditions, using awk:
Field 2 should be null (empty) and Field 4 should be non-null (not empty).
Field 2 should be non-null (not empty) ...
-1
votes
0
answers
55
views
Can you help me with my Powershell script , Clickcount is not working correctly [duplicate]
I set the conditions under which the clickcount value changes, but when the button is pressed, the new value is not pulled into the formula.
I set the conditions under which the clickcount value ...
1
vote
3
answers
57
views
How can I sed two curly braces on two lines and add a coma between them on a Mac?
I'm trying to parse some JSON and am running into an issue with parsing. My objects are:
{
"foo" : "bar"
}
{
"spam" : "ham"
}
I want to change this in a ...
1
vote
1
answer
76
views
How to get the current Wi-Fi SSID in Swift on macOS?
I’m trying to write a basic Swift script to get the name of the Wi-Fi network I’m connected to on macOS. However, even when connected to Wi-Fi, it prints: Not connected to any Wi-Fi network.
import ...
0
votes
0
answers
26
views
jenkins Credentials Binding Plugin not showing username
I m using jenkins Credentials binding plugin with usernamePassword but apparently after recent update the username is not interpreted correctly.
withCredentials([usernamePassword(credentialsId: ...
-1
votes
1
answer
57
views
Ping in Bash Parallel [closed]
I am trying to ping a range of IP addresses using Bash and generate a CSV file with the results.
My current code is as follows:
CSV_FILE="ping_results.csv"
echo "IP Address,Status" ...
0
votes
1
answer
58
views
ZSH/Bash export variable from command substitution with spaces [duplicate]
I'm trying to set variables from the output of a command but bash and zsh are not respecting the quotes.
$ export $(echo 'foo=one bar="two -x"')
bash: export: `-x"': not a valid ...
0
votes
2
answers
73
views
Sourcing ~/.bashrc doesn't source included script [duplicate]
I've a Docker image that installs rvm. In the Dockerfile, I append the following lines to the ~/.bashrc of the user.
export PATH="$PATH:$HOME/.rvm/bin"
source "$HOME/.rvm/scripts/rvm&...
0
votes
1
answer
30
views
How to include the month(date) in the echo statement in unix
I intend to print out boy+month+i...The issue seems to be with the date month variable. I tried with running and the month date seems to be neglected.I know the month date can be fixed manually, but I ...
0
votes
0
answers
39
views
Editor Commands Hang When Running AWS Login Script in Zsh
I'm working on a script that updates an existing secret in AWS Secrets Manager. The script is written in zsh and involves several operations, including an aws_login function that handles AWS ...
0
votes
0
answers
11
views
shell globbing i.e. 'ls' multiple named folders [closed]
Let's say we have a folder with following subfolders.
abc
def
ghi
xyz
Now I want to ls (globbing) content in def and ghi.
Imaginative pseudo cmd (not working):
ls [def|ghi]/src/*/main.c
Expected ...
-1
votes
3
answers
45
views
Need to grep two different output but filenames are same [closed]
Shell script 1
Test1=command 2>output.txt
Shell script 2
Test1=command 2>output.txt
Shell script 3 and so on
All the shell script will run parallel but how do i differentiate the output.txt file ...