All Questions
Tagged with bash-functions or bash
5 questions from the last 7 days
6
votes
3
answers
567
views
move files to directory according to prefix
I'm in the following situation
> ls
H9/ HG01109_chr1_hap1_contigs.list HG01952_chr1_hap2_contigs.list HG02572/ HG03486_chr1_hap1_contigs.list
...
6
votes
2
answers
743
views
Are some bash ambiguous job specs impossible to differentiate?
$ sleep 1234&
$ sleep 12345678&
$ %sleep\ 1234
bash: fg: sleep 1234: ambiguous job spec
$ jobs
[1]- Running sleep 1234 &
[2]+ Running sleep 12345678 &
...
-4
votes
4
answers
97
views
bash pipeline: syntax error near unexpected token 'else'
I'm working on the following pipeline (codeshare.io/243VJE):
#!/bin/bash
#SBATCH --nodes=1 --ntasks=1 --cpus-per-task=10
#SBATCH --time=2-00:00:00
#SBATCH --mem=40gb
#
#SBATCH --job-name=pan_pca
#...
0
votes
0
answers
47
views
bashrc not sourced when running "bash -l", on just one raspberry pi trixie system
Description
I have two Raspberry Pi OS 13 (Trixie) systems with identical Bash versions and identical /bin/bash binaries (verified with md5sum). On one system, running bash -l sources ~/.bashrc as ...
0
votes
0
answers
21
views
Launching Browser in Wayland/Cosmic w/ bash script as "non-steam" game in steam doesn't transfer ownership of controller or allow for the overlay
The situation:
I've been converting my family to Linux for quite some time now. I'm currently in the process of replacing their Roku with a Media PC (in this specific case, Pop_OS! 24.04 using Wayland ...