![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to combine 2 different files | rdasari | HP-UX | 1 | 03-17-2008 05:19 PM |
| Need To Combine 2 Files | goodmis | Shell Programming and Scripting | 4 | 02-21-2007 10:55 PM |
| combine two files | fredao1 | Shell Programming and Scripting | 1 | 01-08-2007 09:29 PM |
| Combine 2 files | Nekki | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 02:46 AM |
| Move files using wildcards ??? | Cameron | UNIX for Dummies Questions & Answers | 5 | 12-25-2001 02:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using cat to combine files using wildcards
How do I use cat (presumably with a sh script) to combine all the files in a directory without listing them individually.
Thank you for your patience with this very elementary question. ![]() |
|
||||
|
A complicating feature
Thank you for your replies!
Unfortunately, here is a partial list of my file names: 1 INSERM Avenir, Epidemiology of Sudden Death in the Population, Paris XI University.rtf 24% mortality in the ICD group, 55% in the pharmacological therapy group, and 48% in the group receiving no therapy.rtf A frequently observed and notable aspect of SCD is its unpredictable and seemingly random nature of onset. Accordingly, one of.rtf A multicenter experience with novel subcutaneous patch.rtf A subcutaneous ICD system is a very useful new treatment approach. This technique is especially suitable for young children and.rtf As you can see, they contain spaces, punctuation marks, and pretty much every other forbidden thing Unix can imagine. What happens when I do "cat dirname/* > newfile" is that I just get the first file. When I try the script: "for file in *; do cat $file >> newfile; done", it does not like the file names. Sorry for the horrible complication... ![]() |
![]() |
| Bookmarks |
| Tags |
| cat |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|