There is a script (on dash) that runs at system startup (as a daemon). The script is run under root.
From under a user I create a file with the right parameter, and the script checks once a second if ...
I have a shell script that needs to delete the file names from the /tmp directory. The file names must be detected from a list of file names passed to my script.
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 ...