Trying to cat files - unrecognized wildcard

Posted by Barb on Stack Overflow See other posts from Stack Overflow or by Barb
Published on 2010-04-20T22:13:05Z Indexed on 2010/04/20 23:43 UTC
Read the original article Hit count: 411

Filed under:
|
|

Hello,

I am trying to create a file that contains all of the code of an app. I have created a file called catlist.txt so that the files are added in the order I need them.

A snippet of my catlist.txt:

app/controllers/application_controller.rb
app/views/layouts/*

app/models/account.rb
app/controllers/accounts_controller.rb
app/views/accounts/*

When I run the command the files that are explicitly listed get added but the wildcard files do not.

cat catlist.txt|xargs cat > fullcode

I get

cat: app/views/layouts/*: No such file or directory
cat: app/views/accounts/*: No such file or directory

Can someone help me with this. If there is an easier method I am open to all suggestions.

Barb

© Stack Overflow or respective owner

Related posts about terminal

Related posts about files