![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Splitting input files into multiple files through AWK command | arund_01 | Shell Programming and Scripting | 3 | 05-13-2008 10:17 AM |
| Multiple input field Separators in awk. | kinksville | Shell Programming and Scripting | 4 | 04-25-2008 06:12 PM |
| redirect input from file? | bjornrud | UNIX for Dummies Questions & Answers | 1 | 03-09-2008 02:37 AM |
| Redirect output to multiple files. | cbkihong | UNIX for Dummies Questions & Answers | 3 | 08-20-2003 06:44 AM |
| please help: how to redirect input into a variable | artur80 | Shell Programming and Scripting | 2 | 11-17-2002 10:18 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
can you redirect multiple files for input?
I have a program that is reading strings into a vector from a file. Currently I am using this command:
a.out < file1 The program runs and prints the contents of the vector to the screen, like its supposed to. The problem is that it needs to read in 3 files to fill the vector. Is there anyway to do this? I tried: a.out < file 1 < file2 This didn't work I tried a.out < file1 ; file2 This didn't work I'm still pretty new to UNIX, so I obviously don't have all the commands down. Can I read in more than one file at a time? If so, how? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|