![]() |
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 |
| 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 |
| How to chk the file name using wildcards?? | RRVARMA | Shell Programming and Scripting | 7 | 07-10-2008 11:23 AM |
| Separate based on file names | prashk15 | Shell Programming and Scripting | 2 | 02-04-2008 09:37 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| File names | giantflameeater | UNIX for Dummies Questions & Answers | 9 | 11-24-2004 07:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
File names based off of wildcards
Hello all-
First post, so just to forewarn you: I know enough about Perl and the Terminal to get myself into trouble, not quite enough to always get out. I'd like to know if it is possible to, from the command prompt, use a wild-card to declare the names of files for input and then use the value of the wild card in the same line to declare the name for the output. I'm using the BLAST package to search through genes, so what I'd like to have is: % blastall -p blastn -i *.dna -o (some-variable).output The -p calls the blastn part of the package, the -i declares the input to be all the genes in the directory and the -o declares the output. I'd like it if a geneA.dna file, for instance, produced an output file called geneA.output. It strikes me as one of those glaringly obvious things I've overlooked at some point, but I have no idea what could be put in the (some-variable) portion of the command. Gory details: using the public BLAST package (so I can't edit anything within there easily to... at all), executing on a Mac OS X Terminal session. If you need any other details, please let me know. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|