ovedpo15 has asked for the wisdom of the Perl Monks concerning the following question:
Iterate over the files array and print into the bash script file:mkdir -p <path-to-dir>
Iterate over the links array and print into the bash script file:scp user@machine:<path-to-file> <path-to-file>
Between reading the paths file and creating the bash script itself I have a black box in my mind which I'm trying to implement and the question is about that black box. If there was a module which you could just "load" the paths into it and then query for what you need (like give me all of the directories...) it could be awesome, but I could not find one. What would be the best strategy here?ln -s <target> <link-name>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating a bash script "on the fly"
by haukex (Archbishop) on Mar 26, 2021 at 21:40 UTC | |
|
Re: Creating a bash script "on the fly"
by 1nickt (Canon) on Mar 26, 2021 at 20:22 UTC | |
by kennethk (Abbot) on Mar 26, 2021 at 20:36 UTC | |
by Fletch (Bishop) on Mar 26, 2021 at 21:09 UTC | |
by ovedpo15 (Pilgrim) on Mar 27, 2021 at 10:22 UTC | |
by haukex (Archbishop) on Mar 27, 2021 at 10:34 UTC | |
by ovedpo15 (Pilgrim) on Mar 27, 2021 at 11:11 UTC | |
by haukex (Archbishop) on Mar 27, 2021 at 11:19 UTC | |
|
Re: Creating a bash script "on the fly"
by perlfan (Parson) on Mar 28, 2021 at 05:03 UTC |