Hello folks
Whilst I agree with the genAI sentiment (don't train it on copyrighted / permissionless data), I'd just like to point out that when you're writing *portable* shell scripts for other people, don't do this:
#!/bin/bash
#!/usr/bin/python
as they're not guaranteed to live there. That's what /usr/bin/env is for - to provide the path to wherever it really does live, and it is much more likely to exist where you might expect. So:
#!/usr/bin/env bash
#!/usr/bin/env python
for compatibility not just with fully LSB Linux but also non-LSB Linux and other Unixes (which might install bash through bsd ports or something).
I believe the "shellcheck" tool will remind you of that, which I'd also recommend using regularly as it will protect you against various mistakes that script writers often make (e.g. not taking care of spaces where one should):
https://www.shellcheck.net/
Cheers
Dan Dart
_____
M: (+44) (0)75 075 91874
Callsign: M0ORI
Software Engineer, Radio Ham, Musician