Is it possible too have a manifest file with directory strings, fx.
#css
SomeDIR/crap0.css
SomeDIR/crap1.css
SomeDIR/crap2.css
#js
SomeDIR/crap0.js
SomeDIR/crap1.js
SomeDIR/crap2.js
Lets call this file list.mf
then i have a bash code where i want too use the directory structure defined in list.mf
could be
cat %first entry in list.mf% > crap.txt
cat %second entr in list.mf% >> crap.txt
hoping for you’re help, ask further questions if you don’t understand my question :=)
/Mathias
What you are trying to do can be done with a
forloop or a simple find, e.g.:But if you want to use a
config(manifest) file, you cansourceit in your script, but that way you must use proper (bash) syntax in the config as well e.g. the file list should be in an array, etc, like this “manifest.file” file contents:And in your script:
If you need that specific format for your
manifestfile you can still write someawk||sed||grepscripts to extract the proper lists.HTH