I believe the title is self-explanatory.
I have some files given as parameters and the given string is the last parameter of my script.
I have tried the two scripts below and do not know how I could ...
My program, wich is bash scripts, runs in a custom ISO with Debian.
I want a GRUB menuentry that passes a parameter from GRUB to the OS, a debugging flag, so I can test the program, and at the same ...
multitail has a nice regex-based filtering mechanism that is described in the manpage and online manual. Both sources state that log lines matching a given regex can be excluded from output using the -...
I know there's *.conf file in /usr/lib/sysctl.d and/or /etc/sysctl.d folders ready to establish kernel parameters on boot. But they are general;
what I want is to customize some of these parameters (...
I have a bash script (script.sh) that takes in many parameters in the format --keyword value. It is read in when the script is invoked with the following lines:
# Get our arguments using flags,
I have an issue with a variable rsync parameter.
I concat filtered expression on COMPILE_FILTERS variable.
rsync -a $COMPILE_FILTERS \
A basic rule of zsh is that you don't need to quote your variables, for example:
% data="single argument"
% print -l $data
One exception I know of is that if an argument must not be ...
I have a R code that I want to execute on several nodes using Slurm, with each iteration of my paramater which goes on a node. This is my Slurm code :
#SBATCH -o job-%A_task.out
I have this working and simple code to echo positional parameters VALUES
echo "Argument = $i "
Here is the actual output from the scrip
Argument = --atleast-pkgconfig-version
I have file.txt that I need to read into a Bash array. Then I need to remove spaces, double quotes and all but the first comma in every entry. Here's how far I've gotten:
$ cat file.txt
2 0 ...
When entering a sudo command file is there a way to set a parameter(s) which locks the file afterward so it cannot be modified, deleted, or overwritten by any other superusers?
More specifically: I ...
Recently I 've been wanting to create a custom parameter for pacman.
To elaborate, I have tweaked pacman.conf so that specific packages (linux, linux-firmware, and a couple more) are ignored when I ...
How do I use the positional parameters (which are given from the command line) inside of a function declaration?
When inside the function definition, $1 and $2 are the only the positional parameters ...