[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.
- Re: simpler question about my script, (continued)
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Dennis Williamson, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script,
Greg Wooledge <=
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/15
- Re: simpler question about my script, Dennis Williamson, 2022/02/15
- Re: simpler question about my script, Alex fxmbsw7 Ratchev, 2022/02/16
- Re: simpler question about my script, Dave Jennings, 2022/02/15
- Re: simpler question about my script, Dennis Williamson, 2022/02/15
- Re: simpler question about my script, Dave Jennings, 2022/02/16
Re: simpler question about my script, Sysadmin Lists, 2022/02/17