Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:21:38+00:00 2026-05-27T07:21:38+00:00

Is it possible too have a manifest file with directory strings, fx. #css SomeDIR/crap0.css

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:21:39+00:00Added an answer on May 27, 2026 at 7:21 am

    What you are trying to do can be done with a for loop or a simple find, e.g.:

    for f in */*css ; do
        cat $f >> OUTPUT.file
    done
    # SAME
    find Somedir/ -iname '*.css' -exec cat \{\} >> OUTPUT.file \;
    

    But if you want to use a config (manifest) file, you can source it 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:

    #css
    export cssfiles=('SomeDIR/crap0.css' 'SomeDIR/crap1.css' 'SomeDIR/crap2.css')
    #js
    export jsfiles=('SomeDIR/crap0.js' 'SomeDIR/crap1.js' 'SomeDIR/crap2.js'
    

    And in your script:

    source /whatever/path/to/manifest.file
    # ... then process those variables  
    for elem in  ${cssfiles[*]} ; do
        cat $elem >> OUTPUTFILE
    done
    # and
    for elem in  ${jsfiles[*]} ; do
        cat $elem >> ANOTHER_OUTPUTFILE
    done
    

    If you need that specific format for your manifest file you can still write some awk||sed||grep scripts to extract the proper lists.

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if this is too specific a question, if that is possible,
This likely applies to non MVC too. But, Is it possible to use the
I have complex logic which is not possible (too slow) to run through PHP
Is it possible to have too many nodes in the umbraco cms? I'm currently
I have too many doubts about this topic. I want to create a clean
I have an xml file like this: <uploads> <upload> <name>asd</name> <type>123</name> </upload> <upload> <name>qwe</name>
Rewrote the entire question because evidently it was too vague I have HTML, this
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
I'm trying to do (in WPF): Have an .exe file that displays the system

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.