help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simpler question about my script


From: Greg Wooledge
Subject: Re: simpler question about my script
Date: Tue, 15 Feb 2022 19:47:06 -0500

On Wed, Feb 16, 2022 at 01:22:16AM +0100, Alex fxmbsw7 Ratchev wrote:
> for me its like a dream, i edit a file in functions/ without tabbing as is
> a new file and it auto loads it into the script

You want that?  Fine.  Put a simple loop at the start of your script.

#!/bin/bash

for f in functions/*; do
  [[ -f $f ]] && source "$f"
done

# Rest of the script here.


I don't know why you make everything so cryptic.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]