All Questions
19
questions with no upvoted or accepted answers
2
votes
0
answers
118
views
How to source from stdout for both Linux and macOS?
On Linux I can do:
source <(cat .env | grep ANDROID_GRADLE_TASK)
But on macOS, this doesn't do anything (no error, and no source)
What can I use for macOS?
Is there a command that works both on ...
1
vote
0
answers
1k
views
Is the macOS/Linux shell the same thing as Bash?
sorry if this is a silly question, but are there any differences between Bash and the macOS/Linux shell? (not all Linux distros use the Bash shell right?)
1
vote
0
answers
270
views
Problems installing RCPLEX
I get an error while I try to install RCPLEX on my Computer and I can't figure out what to do. There is no information what so ever on the internet regarding my problem.
R Marcel$ R CMD INSTALL --...
1
vote
1
answer
226
views
Fortran Compiler Installation Instructions for OS X
I try install fortran compiler for Mac OSX El captain.
Firstly;
I install install_f2c_osx.csh
Run installation script
$ chmod +x install_f2c_osx.csh
$ sudo ./install_f2c_osx.csh
It gives this ...
1
vote
1
answer
224
views
Bash history deduplication causing dangerous multi-shell behaviour
I am using the following code in my .bash_profile to filter and de-duplicate my bash history:
shopt -s histappend
HISTSIZE=100000
HISTFILESIZE=100000
HISTCONTROL=ignoredups:erasedups
PROMPT_COMMAND="...
1
vote
2
answers
4k
views
Script to auto execute creation of ssh tunnel
I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here.
I'm on a Mac, connecting to a linux machine. I can set up ...
0
votes
1
answer
551
views
BASH - combine .md files from subdirectories into a master .md
We have a growing list of subdirectories and we would like to summarize the content in each with a .txt or .md file. We would then like to consolidate those readmes into a single master readme. We ...
0
votes
1
answer
712
views
"echo $VAR | base64 -di > file" fail to execute on MacOS
On Linux I can do:
echo ${ANDROID_KEYSTORE} | base64 -di > android/keystores/staging.keystore
But on MacOS, the same commands gives:
base64: option requires an argument -- i
Usage: base64 [-hvDd] ...
0
votes
1
answer
545
views
Two users (admin + non-admin) what is the right usage of su/sudo?
I have two users on a macos. U1 is a non-admin user and U2 is a admin user.
I cannot add U1 to the sudoers. Is there a way to use U2 to act as if it was U1 issuing sudo <command>?
My thinking:
...
0
votes
0
answers
172
views
Including chmod in shell script - will it work for everyone?
I have a large wrapper.sh file which does a lot of things, but in the end runs catalina.sh tomcat.
Problem is that users who run this wrapper.sh are experiencing error: no permissions to execute ...
0
votes
0
answers
313
views
Terminal opens with a command not found error
I checked the .bash_profile and .zprofile, but it is empty.
Also .bashrc or .zshrc do not exist in my home directory.
Terminal window
0
votes
0
answers
100
views
Unable to redirect `coproc` streams using FD 5 and 6, but not 3 and 4. Why?
On OSX, while attempting to expose a service implemented as a bash script, and started with coproc, to a client implemented as a bash script, by passing the IO streams of the service to the client, I ...
0
votes
1
answer
2k
views
What does this rm -r command do in following usecase on mac terminal?
First I'm directing to the destination folder by below command
cd /Users/myname/MyFolder/
Now I'm using below command here, what does this command will do?
rm -r ../build ../dist
rm command is for ...
0
votes
1
answer
176
views
Moving files to matching folders on linux command line
I would like to copy or move files in to matching folders.
these are my filenames:
1-filename-aa.txt
2-filename-aa.txt
3-filename-aa.txt
1-filename-bb.txt
2-filename-bb.txt
3-filename-bb.txt
these ...
0
votes
1
answer
530
views
Added an external folder to a project in PHPStorm on MacOS Mojave
I'm working in PHP Storm, on a project that's using a package I'm developing in tandem. I've had a couple of workflows for this, but I'd really like to add an external directory (the package source) ...