Skip to main content
Code Review

Questions tagged [bash]

BASH is the GNU Bourne Again SHell, the successor to the classic Unix Bourne sh (shell). It's the default shell for various GNU systems.

Filter by
Sorted by
Tagged with
3 votes
2 answers
46 views

This is a follow up on this question. Most comments have been addressed or were not applicable. Feel free to point out any bad practice. My comments on the previous review: Command chaining and ...
7 votes
4 answers
251 views

About This project attempts to rename a collection of .mp4 files using a wordlist from two different folders. The script reads filenames from a text file, gathers ...
4 votes
1 answer
126 views

Note: The below is similar to this question (i.e. same motivation & general idea), but tries to be more careful: My version should never touch the repository state (to preserve staged files etc), ...
Lukas Lang's user avatar
7 votes
3 answers
872 views

Can you please comment on the script below? It backs up my local password database to a remote repository if a change is detected. It works as intended. I'd like some comments in terms of syntax, ...
5 votes
3 answers
740 views

I have written a short bash (or POSIX-compliant) script to clean up the Traefik access log file and limit it to a maximum of 50 MB. I would like to know what you think of it. Any suggestions are ...
6 votes
1 answer
123 views

I made this executable because I used to play on a MUD, which was essentially a server to which you connect to through telnet to play in a multiplayer world. What annoyed me was how difficult it was ...
0 votes
1 answer
193 views

What I'm asking here is whether do you think the facts there is no type enforcing; there is no indentation enforcing consoles do not syntax highlight consoles do not emphasize multi-line input a-la ...
6 votes
3 answers
825 views

In the below script I am using some arrays, and other Bash stuff, but I have made a minimal working example for you, where you cannot see those things. Anyway, I am interested in a review of the ...
8 votes
2 answers
483 views

We’re enforcing Azure Entra authentication across all Linux VMs, so we’ll disable all local accounts via a custom script. The script will also create a single "break-glass" user with a randomly ...
8 votes
5 answers
458 views

I'm looking for a (possibly cryptographic strong) hash function in Bash with the following properties: The input is only a string with 4 lower-case characters: aaaa to zzzz The output should be a ...
8 votes
2 answers
313 views

On Arch Linux, there are 2 packages that provide the Rust toolchain: rust itself and rustup. When users try to install a package ...
3 votes
1 answer
247 views

If you have files with Cyrillic filenames (e.g. день) and pack them as a ZIP archive on Windows, and then unpack on Mac using the standard archive utility, the ...
jsx97's user avatar
  • 207
7 votes
3 answers
327 views

The code works, but I could use help testing it more comprehensively and double-checking that everything I'm doing makes sense, and that all the options can coexist with each other. I'm running into ...
5 votes
2 answers
160 views

I’ve been working on a bash script to clean up old Docker images while keeping the latest tag for each repository and skipping images currently in use. I’m sharing the script below and would ...
Ilgar's user avatar
  • 51
1 vote
2 answers
156 views

This is a script to start a screen lock in Ubuntu, with user customizable background image(s). The script will eventually be run on sleep by systemd, so by root. This made it complicated to let the ...
Gauthier's user avatar
  • 306

15 30 50 per page
1
2 3 4 5
...
56

AltStyle によって変換されたページ (->オリジナル) /